summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.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/QtDialog/QCMake.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/QtDialog/QCMake.cxx')
-rw-r--r--Source/QtDialog/QCMake.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index a073c30..6442d05 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -25,7 +25,7 @@ QCMake::QCMake(QObject* p)
cmSystemTools::SetRunCommandHideConsole(true);
cmSystemTools::SetMessageCallback(
- [this](const char* msg, const char* title) {
+ [this](std::string const& msg, const char* title) {
this->messageCallback(msg, title);
});
cmSystemTools::SetStdoutCallback(
@@ -359,9 +359,9 @@ void QCMake::progressCallback(const char* msg, float percent)
QCoreApplication::processEvents();
}
-void QCMake::messageCallback(const char* msg, const char* /*title*/)
+void QCMake::messageCallback(std::string const& msg, const char* /*title*/)
{
- emit this->errorMessage(QString::fromLocal8Bit(msg));
+ emit this->errorMessage(QString::fromStdString(msg));
QCoreApplication::processEvents();
}