diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-14 21:30:16 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-02-19 11:35:41 (GMT) |
commit | 9a7c9efeea0c2c2dfa20eb46dc75359c7f787629 (patch) | |
tree | 3c55e09b6b363d0a39d86f7519d05f45fd3f6a85 /Source/cmQtAutoGenerators.cxx | |
parent | 86c2b552ad7bb3af97bb3c59576ddc7cac841d26 (diff) | |
download | CMake-9a7c9efeea0c2c2dfa20eb46dc75359c7f787629.zip CMake-9a7c9efeea0c2c2dfa20eb46dc75359c7f787629.tar.gz CMake-9a7c9efeea0c2c2dfa20eb46dc75359c7f787629.tar.bz2 |
Autogen: Use cmSystemTools::Stdout/err instead of std::cout/err
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index f1cd67e..10ecc1b 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -7,7 +7,6 @@ #include <cmConfigure.h> #include <cmsys/FStream.hxx> #include <cmsys/Terminal.h> -#include <iostream> #include <sstream> #include <stdlib.h> #include <string.h> @@ -1573,21 +1572,21 @@ void cmQtAutoGenerators::LogBold(const std::string& message) void cmQtAutoGenerators::LogInfo(const std::string& message) { - std::cout << message.c_str(); + cmSystemTools::Stdout(message.c_str(), message.size()); } void cmQtAutoGenerators::LogWarning(const std::string& message) { - std::ostringstream ostr; - ostr << message << "\n"; - std::cout << ostr.str(); + std::string msg(message); + msg += "\n"; + cmSystemTools::Stdout(msg.c_str(), msg.size()); } void cmQtAutoGenerators::LogError(const std::string& message) { - std::ostringstream ostr; - ostr << message << "\n"; - std::cerr << ostr.str(); + std::string msg(message); + msg += "\n"; + cmSystemTools::Stderr(msg.c_str(), msg.size()); } void cmQtAutoGenerators::LogCommand(const std::vector<std::string>& command) |