diff options
Diffstat (limited to 'src/gtest-test-part.cc')
-rw-r--r-- | src/gtest-test-part.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtest-test-part.cc b/src/gtest-test-part.cc index 5ddc67c..c60eef3 100644 --- a/src/gtest-test-part.cc +++ b/src/gtest-test-part.cc @@ -48,10 +48,10 @@ using internal::GetUnitTestImpl; // Gets the summary of the failure message by omitting the stack trace // in it. -internal::String TestPartResult::ExtractSummary(const char* message) { +std::string TestPartResult::ExtractSummary(const char* message) { const char* const stack_trace = strstr(message, internal::kStackTraceMarker); - return stack_trace == NULL ? internal::String(message) : - internal::String(message, stack_trace - message); + return stack_trace == NULL ? message : + std::string(message, stack_trace); } // Prints a TestPartResult object. |