summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-01-30 18:33:58 +0100
committerRegina Pfeifer <regina@mailbox.org>2019-01-30 18:33:58 +0100
commit1180fc87803b39cc03e503e4d08fa7d68656da8a (patch)
tree217027628d5cfa0e8f7ecf213486a0038d87f983 /Source/CTest/cmCTestBuildAndTestHandler.cxx
parent748d024551d8f447046363ad617fc72bdd977fd2 (diff)
downloadcmake-1180fc87803b39cc03e503e4d08fa7d68656da8a.tar.gz
OutputCallback: Accept std::string argument
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx7
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;