diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-01-29 14:57:24 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-01-29 15:35:53 (GMT) |
commit | 8c92db829b41243790c7dcc5300227f591a727a8 (patch) | |
tree | af9791b3214748870159c8157e70efdf5400b4d7 /Source/QtDialog | |
parent | bcee24aecc1eaf6615eac9f24ae06acdf38845d3 (diff) | |
download | CMake-8c92db829b41243790c7dcc5300227f591a727a8.zip CMake-8c92db829b41243790c7dcc5300227f591a727a8.tar.gz CMake-8c92db829b41243790c7dcc5300227f591a727a8.tar.bz2 |
MessageCallback: Remove unused bool& argument
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMake.cxx | 7 | ||||
-rw-r--r-- | Source/QtDialog/QCMake.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index 8c71cc0..065d610 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -25,8 +25,8 @@ QCMake::QCMake(QObject* p) cmSystemTools::SetRunCommandHideConsole(true); cmSystemTools::SetMessageCallback( - [this](const char* msg, const char* title, bool& cancel) { - this->messageCallback(msg, title, cancel); + [this](const char* msg, const char* title) { + this->messageCallback(msg, title); }); cmSystemTools::SetStdoutCallback( [this](const char* msg, size_t len) { this->stdoutCallback(msg, len); }); @@ -359,8 +359,7 @@ void QCMake::progressCallback(const char* msg, float percent) QCoreApplication::processEvents(); } -void QCMake::messageCallback(const char* msg, const char* /*title*/, - bool& /*stop*/) +void QCMake::messageCallback(const char* msg, const char* /*title*/) { emit this->errorMessage(QString::fromLocal8Bit(msg)); QCoreApplication::processEvents(); diff --git a/Source/QtDialog/QCMake.h b/Source/QtDialog/QCMake.h index ad85630..4f22505 100644 --- a/Source/QtDialog/QCMake.h +++ b/Source/QtDialog/QCMake.h @@ -169,7 +169,7 @@ protected: bool interruptCallback(); void progressCallback(const char* msg, float percent); - void messageCallback(const char* msg, const char* title, bool&); + void messageCallback(const char* msg, const char* title); void stdoutCallback(const char* msg, size_t len); void stderrCallback(const char* msg, size_t len); |