summaryrefslogtreecommitdiff
path: root/Source/cmVariableWatch.h
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2013-08-06 14:12:54 -0400
committerBrad King <brad.king@kitware.com>2013-08-08 13:31:09 -0400
commit34b397e8dec04c55b415ee0e5f9172f624156d36 (patch)
treed51a539272c2e142d90d920a7f2f4c49881b532f /Source/cmVariableWatch.h
parente43e207c7bbde2a9e0948da0d1e79879ccd5ce45 (diff)
downloadcmake-34b397e8dec04c55b415ee0e5f9172f624156d36.tar.gz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h
index 3b6cafdb36..790c75acce 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