cmDefinitions: Make ClosureKeys API vector-based.

Construct the final list directly in a named return value.  Use
a single set to track bindings already found.

Co-Author: Brad King <brad.king@kitware.com>
This commit is contained in:
Stephen Kelly
2015-04-26 15:36:49 +02:00
parent ca9fa77d5d
commit 012a75a00f
3 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ public:
cmDefinitions Closure() const;
/** Compute the set of all defined keys. */
std::set<std::string> ClosureKeys() const;
std::vector<std::string> ClosureKeys() const;
private:
// String with existence boolean.