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() {
713713 const char * const gtest_output_flag = s.c_str ();
714714
715715 std::string format = GetOutputFormat ();
716- if (format.empty ()) format = std::string ( kDefaultOutputFormat ) ;
716+ if (format.empty ()) format = kDefaultOutputFormat ;
717717
718718 const char * const colon = strchr (gtest_output_flag, ' :' );
719719 if (colon == nullptr )
@@ -4355,8 +4355,8 @@ void XmlUnitTestResultPrinter::OutputXmlTestResult(::std::ostream* stream,
43554355 internal::FormatCompilerIndependentFileLocation (part.file_name (),
43564356 part.line_number ());
43574357 const std::string summary = location + " \n " + part.summary ();
4358- *stream << " <skipped message=\" "
4359- << EscapeXmlAttribute (summary. c_str ()) << " \" >" ;
4358+ *stream << " <skipped message=\" " << EscapeXmlAttribute (summary)
4359+ << " \" >" ;
43604360 const std::string detail = location + " \n " + part.message ();
43614361 OutputXmlCDataSection (stream, RemoveInvalidXmlCharacters (detail).c_str ());
43624362 *stream << " </skipped>\n " ;
You can’t perform that action at this time.
0 commit comments