summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-30 23:13:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-01 17:44:35 (GMT)
commita7ce0c7bc03efcfff6bf9fecc52663409262d73d (patch)
tree396a918ceb76b5043427a17f5ece9cd2e2960b4a /Source/cmDefinitions.h
parent7a5039fa6c0d84d1f4062211afcf0318db77f325 (diff)
downloadCMake-a7ce0c7bc03efcfff6bf9fecc52663409262d73d.zip
CMake-a7ce0c7bc03efcfff6bf9fecc52663409262d73d.tar.gz
CMake-a7ce0c7bc03efcfff6bf9fecc52663409262d73d.tar.bz2
cmDefinitions: Make GetInternal method static.
For some reason, using recursion here is faster to configure ParaView than using a loop. Probably some compiler optimization is inhibited by using a loop. Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r--Source/cmDefinitions.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h
index 33f468b..77edbd0 100644
--- a/Source/cmDefinitions.h
+++ b/Source/cmDefinitions.h
@@ -73,11 +73,9 @@ private:
#endif
MapType Map;
- // Internal query and update methods.
- Def const& GetInternal(const std::string& key,
- std::list<cmDefinitions>::reverse_iterator rbegin,
- std::list<cmDefinitions>::reverse_iterator rend);
-
+ static Def const& GetInternal(const std::string& key,
+ std::list<cmDefinitions>::reverse_iterator rbegin,
+ std::list<cmDefinitions>::reverse_iterator rend);
void MakeClosure(std::set<std::string>& undefined,
std::list<cmDefinitions>::const_reverse_iterator rbegin,
std::list<cmDefinitions>::const_reverse_iterator rend);