diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-01-30 18:33:58 +0100 |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-01-30 18:33:58 +0100 |
commit | 1180fc87803b39cc03e503e4d08fa7d68656da8a (patch) | |
tree | 217027628d5cfa0e8f7ecf213486a0038d87f983 /Source/CTest/cmCTestBuildAndTestHandler.cxx | |
parent | 748d024551d8f447046363ad617fc72bdd977fd2 (diff) | |
download | cmake-1180fc87803b39cc03e503e4d08fa7d68656da8a.tar.gz |
OutputCallback: Accept std::string argument
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestBuildAndTestHandler.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx index 38aa1b3fde..2fd4c7ab32 100644 --- a/Source/CTest/cmCTestBuildAndTestHandler.cxx +++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx @@ -123,11 +123,8 @@ public: s += "\n"; }); - cmSystemTools::SetStdoutCallback( - [&s](const char* m, size_t len) { s.append(m, len); }); - - cmSystemTools::SetStderrCallback( - [&s](const char* m, size_t len) { s.append(m, len); }); + cmSystemTools::SetStdoutCallback([&s](std::string const& m) { s += m; }); + cmSystemTools::SetStderrCallback([&s](std::string const& m) { s += m; }); this->CM.SetProgressCallback([&s](const char* msg, float /*unused*/) { s += msg; |