diff options
Diffstat (limited to 'Source/CTest')
-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 38aa1b3..2fd4c7a 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; |