summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest-test-part.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/src/gtest-test-part.cc')
-rw-r--r--googletest/src/gtest-test-part.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/googletest/src/gtest-test-part.cc b/googletest/src/gtest-test-part.cc
index 2855e3e..515b308 100644
--- a/googletest/src/gtest-test-part.cc
+++ b/googletest/src/gtest-test-part.cc
@@ -41,8 +41,7 @@ using internal::GetUnitTestImpl;
// in it.
std::string TestPartResult::ExtractSummary(const char* message) {
const char* const stack_trace = strstr(message, internal::kStackTraceMarker);
- return stack_trace == NULL ? message :
- std::string(message, stack_trace);
+ return stack_trace == nullptr ? message : std::string(message, stack_trace);
}
// Prints a TestPartResult object.