summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-06 20:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-02-07 18:41:27 (GMT)
commit82edd98300b9d050dd28fdfa1e6ea7b18ecca22c (patch)
treea0bd32bc16a5793f9729cfb82872e4df8f47ad78 /Source/cmServer.cxx
parent062cfd991faac000d484c74e5af7d65726c655dc (diff)
downloadCMake-82edd98300b9d050dd28fdfa1e6ea7b18ecca22c.zip
CMake-82edd98300b9d050dd28fdfa1e6ea7b18ecca22c.tar.gz
CMake-82edd98300b9d050dd28fdfa1e6ea7b18ecca22c.tar.bz2
cmSystemTools: MessageCallback and Message() accept std::string argument
Diffstat (limited to 'Source/cmServer.cxx')
-rw-r--r--Source/cmServer.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmServer.cxx b/Source/cmServer.cxx
index e740c05..719e6b1 100644
--- a/Source/cmServer.cxx
+++ b/Source/cmServer.cxx
@@ -97,7 +97,7 @@ void cmServer::ProcessRequest(cmConnection* connection,
}
cmSystemTools::SetMessageCallback(
- [&request](const char* msg, const char* title) {
+ [&request](const std::string& msg, const char* title) {
reportMessage(msg, title, request);
});
@@ -165,15 +165,14 @@ void cmServer::reportProgress(const char* msg, float progress,
}
}
-void cmServer::reportMessage(const char* msg, const char* title,
+void cmServer::reportMessage(const std::string& msg, const char* title,
const cmServerRequest& request)
{
- assert(msg);
std::string titleString;
if (title) {
titleString = title;
}
- request.ReportMessage(std::string(msg), titleString);
+ request.ReportMessage(msg, titleString);
}
cmServerResponse cmServer::SetProtocolVersion(const cmServerRequest& request)