diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2013-08-02 19:43:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-08-08 17:31:09 (GMT) |
commit | fc7c3b4dc8522ad489a6fb67ac6030f302c65df3 (patch) | |
tree | 5fe31541d3b997a634055e43e65fc95c6a797fea /Source/cmVariableWatch.h | |
parent | 1e0539cd2c14e2cb892e5f95238002d981645b78 (diff) | |
download | CMake-fc7c3b4dc8522ad489a6fb67ac6030f302c65df3.zip CMake-fc7c3b4dc8522ad489a6fb67ac6030f302c65df3.tar.gz CMake-fc7c3b4dc8522ad489a6fb67ac6030f302c65df3.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h index 7dd4ac5..45273e5 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; |