Refactoring: use append functions from cmext/algorithm

This commit is contained in:
Marc Chevrier
2019-12-09 17:39:29 +01:00
parent a38d04c076
commit f7d12609f0
60 changed files with 235 additions and 208 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include <vector>
#include <cm/iterator>
#include <cmext/algorithm>
#include "cmAlgorithms.h"
#include "cmProperty.h"
@@ -607,7 +608,7 @@ const char* cmStateDirectory::GetProperty(const std::string& prop,
}
if (prop == "VARIABLES") {
std::vector<std::string> res = this->Snapshot_.ClosureKeys();
cmAppend(res, this->Snapshot_.State->GetCacheEntryKeys());
cm::append(res, this->Snapshot_.State->GetCacheEntryKeys());
std::sort(res.begin(), res.end());
output = cmJoin(res, ";");
return output.c_str();