aboutsummaryrefslogtreecommitdiff
path: root/lib/gtest/src/gtest-test-part.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gtest/src/gtest-test-part.cc')
-rw-r--r--lib/gtest/src/gtest-test-part.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gtest/src/gtest-test-part.cc b/lib/gtest/src/gtest-test-part.cc
index 5ddc67c1c9..c60eef3ab3 100644
--- a/lib/gtest/src/gtest-test-part.cc
+++ b/lib/gtest/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.