aboutsummaryrefslogtreecommitdiffstats
path: root/gtest/include/gtest/gtest-message.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtest/include/gtest/gtest-message.h')
-rw-r--r--gtest/include/gtest/gtest-message.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtest/include/gtest/gtest-message.h b/gtest/include/gtest/gtest-message.h
index f135b69..6398712 100644
--- a/gtest/include/gtest/gtest-message.h
+++ b/gtest/include/gtest/gtest-message.h
@@ -46,8 +46,6 @@
#ifndef GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
#define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
-#include <limits>
-
#include <gtest/internal/gtest-string.h>
#include <gtest/internal/gtest-internal.h>
@@ -79,7 +77,7 @@ namespace testing {
// latter (it causes an access violation if you do). The Message
// class hides this difference by treating a NULL char pointer as
// "(null)".
-class GTEST_API_ Message {
+class Message {
private:
// The type of basic IO manipulators (endl, ends, and flush) for
// narrow streams.
@@ -91,11 +89,7 @@ class GTEST_API_ Message {
// ASSERT/EXPECT in a procedure adds over 200 bytes to the procedure's
// stack frame leading to huge stack frames in some cases; gcc does not reuse
// the stack space.
- Message() : ss_(new internal::StrStream) {
- // By default, we want there to be enough precision when printing
- // a double to a Message.
- *ss_ << std::setprecision(std::numeric_limits<double>::digits10 + 2);
- }
+ Message() : ss_(new internal::StrStream) {}
// Copy constructor.
Message(const Message& msg) : ss_(new internal::StrStream) { // NOLINT