diff options
author | Abseil Team <absl-team@google.com> | 2023-03-24 07:22:33 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-24 07:23:16 (GMT) |
commit | a0ced33ac6df214966bb90ba036e0a5666dca14e (patch) | |
tree | 9af00f866611ccace8f4844830dfd1cf00b9cd04 /googletest/include/gtest/gtest-assertion-result.h | |
parent | 6f01e3dc125e82f2d3d87839a8be52f610c732ea (diff) | |
download | googletest-a0ced33ac6df214966bb90ba036e0a5666dca14e.zip googletest-a0ced33ac6df214966bb90ba036e0a5666dca14e.tar.gz googletest-a0ced33ac6df214966bb90ba036e0a5666dca14e.tar.bz2 |
Internal Code Change
PiperOrigin-RevId: 519071084
Change-Id: I6459d60606e93bf658e505544538367508722857
Diffstat (limited to 'googletest/include/gtest/gtest-assertion-result.h')
-rw-r--r-- | googletest/include/gtest/gtest-assertion-result.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/gtest-assertion-result.h b/googletest/include/gtest/gtest-assertion-result.h index addbb59..62fbea6 100644 --- a/googletest/include/gtest/gtest-assertion-result.h +++ b/googletest/include/gtest/gtest-assertion-result.h @@ -181,7 +181,7 @@ class GTEST_API_ AssertionResult { // assertion's expectation). When nothing has been streamed into the // object, returns an empty string. const char* message() const { - return message_.get() != nullptr ? message_->c_str() : ""; + return message_ != nullptr ? message_->c_str() : ""; } // Deprecated; please use message() instead. const char* failure_message() const { return message(); } @@ -204,7 +204,7 @@ class GTEST_API_ AssertionResult { private: // Appends the contents of message to message_. void AppendMessage(const Message& a_message) { - if (message_.get() == nullptr) message_.reset(new ::std::string); + if (message_ == nullptr) message_.reset(new ::std::string); message_->append(a_message.GetString().c_str()); } |