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
9c1efac2
Commit
9c1efac2
authored
Apr 20, 2023
by
Tom Hughes
Committed by
Copybara-Service
Apr 20, 2023
Browse files
Use std::make_unique
PiperOrigin-RevId: 525828947 Change-Id: I66f47c835bc93ba171eba0da8df09eff89c6c77b
parent
d7fb5e1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
googletest/include/gtest/gtest-assertion-result.h
googletest/include/gtest/gtest-assertion-result.h
+1
-1
No files found.
googletest/include/gtest/gtest-assertion-result.h
View file @
9c1efac2
...
@@ -204,7 +204,7 @@ class GTEST_API_ AssertionResult {
...
@@ -204,7 +204,7 @@ class GTEST_API_ AssertionResult {
private:
private:
// Appends the contents of message to message_.
// Appends the contents of message to message_.
void
AppendMessage
(
const
Message
&
a_message
)
{
void
AppendMessage
(
const
Message
&
a_message
)
{
if
(
message_
==
nullptr
)
message_
.
reset
(
new
::
std
::
string
);
if
(
message_
==
nullptr
)
message_
=
::
std
::
make_unique
<
::
std
::
string
>
(
);
message_
->
append
(
a_message
.
GetString
().
c_str
());
message_
->
append
(
a_message
.
GetString
().
c_str
());
}
}
...
...
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