diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-01-30 17:33:58 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-01-30 17:33:58 (GMT) |
commit | 1180fc87803b39cc03e503e4d08fa7d68656da8a (patch) | |
tree | 217027628d5cfa0e8f7ecf213486a0038d87f983 /Source/cmSystemTools.cxx | |
parent | 748d024551d8f447046363ad617fc72bdd977fd2 (diff) | |
download | CMake-1180fc87803b39cc03e503e4d08fa7d68656da8a.zip CMake-1180fc87803b39cc03e503e4d08fa7d68656da8a.tar.gz CMake-1180fc87803b39cc03e503e4d08fa7d68656da8a.tar.bz2 |
OutputCallback: Accept std::string argument
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index a9cf0c6..5d8c079 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -308,7 +308,7 @@ void cmSystemTools::SetStderrCallback(OutputCallback f) void cmSystemTools::Stderr(const std::string& s) { if (s_StderrCallback) { - s_StderrCallback(s.c_str(), s.length()); + s_StderrCallback(s); } else { std::cerr << s << std::flush; } @@ -317,7 +317,7 @@ void cmSystemTools::Stderr(const std::string& s) void cmSystemTools::Stdout(const std::string& s) { if (s_StdoutCallback) { - s_StdoutCallback(s.c_str(), s.length()); + s_StdoutCallback(s); } else { std::cout << s << std::flush; } |