diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2013-08-06 18:12:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-08-08 17:31:09 (GMT) |
commit | 34b397e8dec04c55b415ee0e5f9172f624156d36 (patch) | |
tree | d51a539272c2e142d90d920a7f2f4c49881b532f /Source/cmVariableWatch.h | |
parent | e43e207c7bbde2a9e0948da0d1e79879ccd5ce45 (diff) | |
download | CMake-34b397e8dec04c55b415ee0e5f9172f624156d36.zip CMake-34b397e8dec04c55b415ee0e5f9172f624156d36.tar.gz CMake-34b397e8dec04c55b415ee0e5f9172f624156d36.tar.bz2 |
variable_watch: Allow specifying the data to match in RemoveWatch
Now that watches are dependent on their client_data when adding, it also
makes sense to allow matching the data for removal.
Diffstat (limited to 'Source/cmVariableWatch.h')
-rw-r--r-- | Source/cmVariableWatch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h index 3b6cafd..790c75a 100644 --- a/Source/cmVariableWatch.h +++ b/Source/cmVariableWatch.h @@ -36,7 +36,8 @@ public: */ bool AddWatch(const std::string& variable, WatchMethod method, void* client_data=0, DeleteData delete_data=0); - void RemoveWatch(const std::string& variable, WatchMethod method); + void RemoveWatch(const std::string& variable, WatchMethod method, + void* client_data=0); /** * This method is called when variable is accessed |