File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ std::string UnitTestOptions::GetAbsolutePathToOutputFile() {
713
713
const char * const gtest_output_flag = s.c_str ();
714
714
715
715
std::string format = GetOutputFormat ();
716
- if (format.empty ()) format = std::string ( kDefaultOutputFormat ) ;
716
+ if (format.empty ()) format = kDefaultOutputFormat ;
717
717
718
718
const char * const colon = strchr (gtest_output_flag, ' :' );
719
719
if (colon == nullptr )
@@ -4355,8 +4355,8 @@ void XmlUnitTestResultPrinter::OutputXmlTestResult(::std::ostream* stream,
4355
4355
internal::FormatCompilerIndependentFileLocation (part.file_name (),
4356
4356
part.line_number ());
4357
4357
const std::string summary = location + " \n " + part.summary ();
4358
- *stream << " <skipped message=\" "
4359
- << EscapeXmlAttribute (summary. c_str ()) << " \" >" ;
4358
+ *stream << " <skipped message=\" " << EscapeXmlAttribute (summary)
4359
+ << " \" >" ;
4360
4360
const std::string detail = location + " \n " + part.message ();
4361
4361
OutputXmlCDataSection (stream, RemoveInvalidXmlCharacters (detail).c_str ());
4362
4362
*stream << " </skipped>\n " ;
You can’t perform that action at this time.
0 commit comments