summaryrefslogtreecommitdiff
path: root/Source/cmVariableWatch.h
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2013-08-02 15:43:15 -0400
committerBrad King <brad.king@kitware.com>2013-08-08 13:31:09 -0400
commitfc7c3b4dc8522ad489a6fb67ac6030f302c65df3 (patch)
tree5fe31541d3b997a634055e43e65fc95c6a797fea /Source/cmVariableWatch.h
parent1e0539cd2c14e2cb892e5f95238002d981645b78 (diff)
downloadcmake-fc7c3b4dc8522ad489a6fb67ac6030f302c65df3.tar.gz
variable_watch: Store client data as pointers
The STL containers create extra copies which makes keeping track of the owner of the client data much messier.
Diffstat (limited to 'Source/cmVariableWatch.h')
-rw-r--r--Source/cmVariableWatch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h
index 7dd4ac5e60..45273e5ae2 100644
--- a/Source/cmVariableWatch.h
+++ b/Source/cmVariableWatch.h
@@ -70,7 +70,7 @@ protected:
Pair() : Method(0), ClientData(0) {}
};
- typedef std::vector< Pair > VectorOfPairs;
+ typedef std::vector< Pair* > VectorOfPairs;
typedef std::map<cmStdString, VectorOfPairs > StringToVectorOfPairs;
StringToVectorOfPairs WatchMap;