summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-29 21:48:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-29 21:54:20 (GMT)
commitf79cd99d6dcdfcdcd341c5ea90a5f2d9c4d6d3bc (patch)
tree496c6ecc435a3f6f87293d5ca119f6675a736be7 /Source/cmDefinitions.h
parentaa4d1ee80f1ced5b09335cc84bdd373c0875fd80 (diff)
downloadCMake-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.h8
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