Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
18abd8f5
Commit
18abd8f5
authored
May 09, 2018
by
Jae Heon Lee
Browse files
Use NULL instead of nullptr, for pre-C++11 builds.
parent
ec5ad0f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/src/gtest.cc
googletest/src/gtest.cc
+2
-2
No files found.
googletest/src/gtest.cc
View file @
18abd8f5
...
@@ -5342,10 +5342,10 @@ OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
...
@@ -5342,10 +5342,10 @@ OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
// Returns the most specific TestResult currently running.
// Returns the most specific TestResult currently running.
TestResult
*
UnitTestImpl
::
current_test_result
()
{
TestResult
*
UnitTestImpl
::
current_test_result
()
{
if
(
current_test_info_
!=
nullptr
)
{
if
(
current_test_info_
!=
NULL
)
{
return
&
current_test_info_
->
result_
;
return
&
current_test_info_
->
result_
;
}
}
if
(
current_test_case_
!=
nullptr
)
{
if
(
current_test_case_
!=
NULL
)
{
return
&
current_test_case_
->
ad_hoc_test_result_
;
return
&
current_test_case_
->
ad_hoc_test_result_
;
}
}
return
&
ad_hoc_test_result_
;
return
&
ad_hoc_test_result_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment