diff options
author | Brad King <brad.king@kitware.com> | 2014-05-15 13:38:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-15 14:24:21 (GMT) |
commit | 73b13f56413cac74d90a2ab1938add3bbe740ecb (patch) | |
tree | 9cfad78062b4804f73d5efab6cce30f5fe836504 /Source/cmSystemTools.h | |
parent | 7577a542dfa0aac045b97bfe4440241583c62e3a (diff) | |
download | CMake-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/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 27b4bce..979551c 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -57,14 +57,14 @@ public: */ static std::string TrimWhitespace(const std::string& s); - typedef void (*ErrorCallback)(const char*, const char*, bool&, void*); + typedef void (*MessageCallback)(const char*, const char*, bool&, void*); /** * Set the function used by GUIs to display error messages * Function gets passed: message as a const char*, * title as a const char*, and a reference to bool that when * set to false, will disable furthur messages (cancel). */ - static void SetErrorCallback(ErrorCallback f, void* clientData=0); + static void SetMessageCallback(MessageCallback f, void* clientData=0); /** * Display an error message. @@ -470,10 +470,10 @@ private: static bool s_FatalErrorOccured; static bool s_DisableMessages; static bool s_DisableRunCommandOutput; - static ErrorCallback s_ErrorCallback; + static MessageCallback s_MessageCallback; static StdoutCallback s_StdoutCallback; static InterruptCallback s_InterruptCallback; - static void* s_ErrorCallbackClientData; + static void* s_MessageCallbackClientData; static void* s_StdoutCallbackClientData; static void* s_InterruptCallbackClientData; }; |