summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-12 13:28:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-02-12 13:30:13 (GMT)
commit20afd497c92f66883de5dae92e2105c2f0cb4f70 (patch)
treee466ac318883d07a73f3e0cea1f26f1b4443569f /Source/CTest/cmCTestBuildAndTestHandler.cxx
parenta7a85719332b5be90bb9ce1f3707a767197566c0 (diff)
parent950c099d83757acd57cec78a3579ea1f6aaddf96 (diff)
downloadCMake-20afd497c92f66883de5dae92e2105c2f0cb4f70.zip
CMake-20afd497c92f66883de5dae92e2105c2f0cb4f70.tar.gz
CMake-20afd497c92f66883de5dae92e2105c2f0cb4f70.tar.bz2
Merge topic 'progress-stdstring'
950c099d83 cmake: Progress functions use `std::string` param Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2948
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index 3856569..696b52f 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -126,10 +126,11 @@ public:
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;
- s += "\n";
- });
+ this->CM.SetProgressCallback(
+ [&s](const std::string& msg, float /*unused*/) {
+ s += msg;
+ s += "\n";
+ });
}
~cmCTestBuildAndTestCaptureRAII()