diff options
author | Brad King <brad.king@kitware.com> | 2014-05-15 13:40:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-15 14:24:23 (GMT) |
commit | a9ae1d7a605333f0dea6d709e27a177b19f8c2ae (patch) | |
tree | e90658fa6d9716029dd9b2cd38f535a172a446e7 /Source/cmSystemTools.cxx | |
parent | 73b13f56413cac74d90a2ab1938add3bbe740ecb (diff) | |
download | CMake-a9ae1d7a605333f0dea6d709e27a177b19f8c2ae.zip CMake-a9ae1d7a605333f0dea6d709e27a177b19f8c2ae.tar.gz CMake-a9ae1d7a605333f0dea6d709e27a177b19f8c2ae.tar.bz2 |
cmSystemTools: Simplify InterruptCallback definition
Use the typedef to declare the member instead of duplicating the type.
Use default initialization instead of an explicit zero initializer.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f61d75d..0289430 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -122,11 +122,11 @@ bool cmSystemTools::s_DisableMessages = false; bool cmSystemTools::s_ForceUnixPaths = false; cmSystemTools::MessageCallback cmSystemTools::s_MessageCallback; +cmSystemTools::InterruptCallback cmSystemTools::s_InterruptCallback; void (*cmSystemTools::s_StdoutCallback)(const char*, int len, void*); void* cmSystemTools::s_MessageCallbackClientData; void* cmSystemTools::s_StdoutCallbackClientData = 0; -bool (*cmSystemTools::s_InterruptCallback)(void*); -void* cmSystemTools::s_InterruptCallbackClientData = 0; +void* cmSystemTools::s_InterruptCallbackClientData; // replace replace with with as many times as it shows up in source. // write the result into source. |