diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2020-04-09 09:47:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 09:47:57 +0100 |
commit | 0b6d567619fe353c2de5bc6d6f059cd7cb79e19a (patch) | |
tree | b24d8387f2cfa8cb60d28bbab03dff9d093181f9 | |
parent | e3f0319d89f4cbf32993de595d984183b1a9fc57 (diff) | |
download | googletest-0b6d567619fe353c2de5bc6d6f059cd7cb79e19a.tar.gz googletest-0b6d567619fe353c2de5bc6d6f059cd7cb79e19a.tar.bz2 googletest-0b6d567619fe353c2de5bc6d6f059cd7cb79e19a.zip |
Remove redundant .c_str()
-rw-r--r-- | googletest/src/gtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 4c8b42f9..53246746 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -4091,7 +4091,7 @@ void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream, part.line_number()); const std::string summary = location + "\n" + part.summary(); *stream << " <failure message=\"" - << EscapeXmlAttribute(summary.c_str()) + << EscapeXmlAttribute(summary) << "\" type=\"\">"; const std::string detail = location + "\n" + part.message(); OutputXmlCDataSection(stream, RemoveInvalidXmlCharacters(detail).c_str()); |