summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-01-29 14:57:24 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-01-29 15:35:53 (GMT)
commit8c92db829b41243790c7dcc5300227f591a727a8 (patch)
treeaf9791b3214748870159c8157e70efdf5400b4d7 /Source/cmakemain.cxx
parentbcee24aecc1eaf6615eac9f24ae06acdf38845d3 (diff)
downloadCMake-8c92db829b41243790c7dcc5300227f591a727a8.zip
CMake-8c92db829b41243790c7dcc5300227f591a727a8.tar.gz
CMake-8c92db829b41243790c7dcc5300227f591a727a8.tar.bz2
MessageCallback: Remove unused bool& argument
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx23
1 files changed, 10 insertions, 13 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index f1a223b..890b74e 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -143,7 +143,7 @@ static std::string cmakemainGetStack(cmake* cm)
}
static void cmakemainMessageCallback(const char* m, const char* /*unused*/,
- bool& /*unused*/, cmake* cm)
+ cmake* cm)
{
std::cerr << m << cmakemainGetStack(cm) << std::endl << std::flush;
}
@@ -319,10 +319,9 @@ int do_cmake(int ac, char const* const* av)
cmake cm(role, mode);
cm.SetHomeDirectory("");
cm.SetHomeOutputDirectory("");
- cmSystemTools::SetMessageCallback(
- [&cm](const char* msg, const char* title, bool& cancel) {
- cmakemainMessageCallback(msg, title, cancel, &cm);
- });
+ cmSystemTools::SetMessageCallback([&cm](const char* msg, const char* title) {
+ cmakemainMessageCallback(msg, title, &cm);
+ });
cm.SetProgressCallback([&cm](const char* msg, float prog) {
cmakemainProgressCallback(msg, prog, &cm);
});
@@ -500,10 +499,9 @@ static int do_build(int ac, char const* const* av)
}
cmake cm(cmake::RoleInternal, cmState::Unknown);
- cmSystemTools::SetMessageCallback(
- [&cm](const char* msg, const char* title, bool& cancel) {
- cmakemainMessageCallback(msg, title, cancel, &cm);
- });
+ cmSystemTools::SetMessageCallback([&cm](const char* msg, const char* title) {
+ cmakemainMessageCallback(msg, title, &cm);
+ });
cm.SetProgressCallback([&cm](const char* msg, float prog) {
cmakemainProgressCallback(msg, prog, &cm);
});
@@ -543,10 +541,9 @@ static int do_open(int ac, char const* const* av)
}
cmake cm(cmake::RoleInternal, cmState::Unknown);
- cmSystemTools::SetMessageCallback(
- [&cm](const char* msg, const char* title, bool& cancel) {
- cmakemainMessageCallback(msg, title, cancel, &cm);
- });
+ cmSystemTools::SetMessageCallback([&cm](const char* msg, const char* title) {
+ cmakemainMessageCallback(msg, title, &cm);
+ });
cm.SetProgressCallback([&cm](const char* msg, float prog) {
cmakemainProgressCallback(msg, prog, &cm);
});