Remove redundant .c_str()

This commit is contained in:
Malcolm Parsons 2020-04-09 09:47:57 +01:00 committed by GitHub
parent e3f0319d89
commit 0b6d567619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());