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
0b6d5676
Unverified
Commit
0b6d5676
authored
Apr 09, 2020
by
Malcolm Parsons
Committed by
GitHub
Apr 09, 2020
Browse files
Remove redundant .c_str()
parent
e3f0319d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
googletest/src/gtest.cc
googletest/src/gtest.cc
+1
-1
No files found.
googletest/src/gtest.cc
View file @
0b6d5676
...
@@ -4091,7 +4091,7 @@ void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream,
...
@@ -4091,7 +4091,7 @@ void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream,
part.line_number());
part.line_number());
const std::string summary = location + "\n" + part.summary();
const std::string summary = location + "\n" + part.summary();
*stream << " <failure message=\""
*stream << " <failure message=\""
<<
EscapeXmlAttribute
(
summary
.
c_str
()
)
<< EscapeXmlAttribute(summary)
<< "\" type=\"\">";
<< "\" type=\"\">";
const std::string detail = location + "\n" + part.message();
const std::string detail = location + "\n" + part.message();
OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).c_str());
OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).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