diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-03-12 18:01:45 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-06-09 18:46:45 (GMT) |
commit | 5abfde6cb8a1ae0b2825797eab6c2e9842eb7c49 (patch) | |
tree | 9d9b686577045406f0afdc5af93acb523929c1eb /Source/cmMakefile.cxx | |
parent | 9e8fa1043ce9bfcffdcfa395f618dd7958ef4251 (diff) | |
download | CMake-5abfde6cb8a1ae0b2825797eab6c2e9842eb7c49.zip CMake-5abfde6cb8a1ae0b2825797eab6c2e9842eb7c49.tar.gz CMake-5abfde6cb8a1ae0b2825797eab6c2e9842eb7c49.tar.bz2 |
cmDefinitions: Don't store parent lookups
When looking up scopes, it is faster to not store the lookup locally to
keep the maps smaller and avoid extra allocations and rebalancing.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 630957f..412c998 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4422,7 +4422,7 @@ void cmMakefile::RaiseScope(const std::string& var, const char *varDef) if(cmDefinitions* up = cur.GetParent()) { // First localize the definition in the current scope. - cur.Get(var); + cur.Pull(var); // Now update the definition in the parent scope. up->Set(var, varDef); |