Sfoglia il codice sorgente

Autogen: LogWarning method fix

Sebastian Holtermann 8 anni fa
parent
commit
86c2b552ad
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Source/cmQtAutoGenerators.cxx

+ 2 - 2
Source/cmQtAutoGenerators.cxx

@@ -1580,13 +1580,13 @@ void cmQtAutoGenerators::LogWarning(const std::string& message)
 {
   std::ostringstream ostr;
   ostr << message << "\n";
-  std::cout << message.c_str();
+  std::cout << ostr.str();
 }
 
 void cmQtAutoGenerators::LogError(const std::string& message)
 {
   std::ostringstream ostr;
-  ostr << message << "\n\n";
+  ostr << message << "\n";
   std::cerr << ostr.str();
 }