summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-15 13:38:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-15 14:24:21 (GMT)
commit73b13f56413cac74d90a2ab1938add3bbe740ecb (patch)
tree9cfad78062b4804f73d5efab6cce30f5fe836504 /Source/CursesDialog
parent7577a542dfa0aac045b97bfe4440241583c62e3a (diff)
downloadCMake-73b13f56413cac74d90a2ab1938add3bbe740ecb.zip
CMake-73b13f56413cac74d90a2ab1938add3bbe740ecb.tar.gz
CMake-73b13f56413cac74d90a2ab1938add3bbe740ecb.tar.bz2
cmSystemTools: Rename ErrorCallback to MessageCallback
Clarify that it is the callback for the cmSystemTools::Message API. Rename callback clients too.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccmake.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 2d1ef5c..d70bedb 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -73,7 +73,8 @@ void onsig(int)
}
-void CMakeErrorHandler(const char* message, const char* title, bool&, void* clientData)
+void CMakeMessageHandler(const char* message, const char* title, bool&,
+ void* clientData)
{
cmCursesForm* self = static_cast<cmCursesForm*>( clientData );
self->AddError(message, title);
@@ -171,7 +172,7 @@ int main(int argc, char const* const* argv)
return 1;
}
- cmSystemTools::SetErrorCallback(CMakeErrorHandler, myform);
+ cmSystemTools::SetMessageCallback(CMakeMessageHandler, myform);
cmCursesForm::CurrentForm = myform;