diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-29 21:48:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-29 21:54:20 (GMT) |
commit | f79cd99d6dcdfcdcd341c5ea90a5f2d9c4d6d3bc (patch) | |
tree | 496c6ecc435a3f6f87293d5ca119f6675a736be7 /Source/cmDefinitions.h | |
parent | aa4d1ee80f1ced5b09335cc84bdd373c0875fd80 (diff) | |
download | CMake-f79cd99d6dcdfcdcd341c5ea90a5f2d9c4d6d3bc.zip CMake-f79cd99d6dcdfcdcd341c5ea90a5f2d9c4d6d3bc.tar.gz CMake-f79cd99d6dcdfcdcd341c5ea90a5f2d9c4d6d3bc.tar.bz2 |
cmDefinitions: Implement MakeClosure in terms of reverse iterators.
Iterate directly over the parent content provided by cmMakefile.
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r-- | Source/cmDefinitions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h index 67b6170..87f5c34 100644 --- a/Source/cmDefinitions.h +++ b/Source/cmDefinitions.h @@ -51,8 +51,8 @@ public: std::vector<std::string> ClosureKeys() const; static cmDefinitions MakeClosure( - std::list<cmDefinitions const*>::iterator begin, - std::list<cmDefinitions const*>::iterator end); + std::list<cmDefinitions>::const_reverse_iterator rbegin, + std::list<cmDefinitions>::const_reverse_iterator rend); private: // String with existence boolean. @@ -84,8 +84,8 @@ private: Def const& GetInternal(const std::string& key); void MakeClosure(std::set<std::string>& undefined, - std::list<cmDefinitions const*>::iterator begin, - std::list<cmDefinitions const*>::iterator end); + std::list<cmDefinitions>::const_reverse_iterator rbegin, + std::list<cmDefinitions>::const_reverse_iterator rend); }; #endif |