summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-12-09 16:39:29 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-12-17 09:44:02 (GMT)
commitf7d12609f038a0e4e09f9a40fa081c4a4db3e56b (patch)
treec20d476dfb30aa3772797b2d66d27bbedd1ce662 /Source/cmakemain.cxx
parenta38d04c0764b3550bd7d17b659945a38c1368f1e (diff)
downloadCMake-f7d12609f038a0e4e09f9a40fa081c4a4db3e56b.zip
CMake-f7d12609f038a0e4e09f9a40fa081c4a4db3e56b.tar.gz
CMake-f7d12609f038a0e4e09f9a40fa081c4a4db3e56b.tar.bz2
Refactoring: use append functions from cmext/algorithm
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx21
1 files changed, 11 insertions, 10 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index d817971..0fc39ba 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -1,7 +1,16 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
-#include "cmAlgorithms.h"
+#include <cassert>
+#include <cctype>
+#include <climits>
+#include <cstring>
+#include <iostream>
+#include <string>
+#include <vector>
+
+#include <cmext/algorithm>
+
#include "cmDocumentationEntry.h" // IWYU pragma: keep
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
@@ -24,14 +33,6 @@
# include "cmsys/ConsoleBuf.hxx"
#endif
-#include <cassert>
-#include <cctype>
-#include <climits>
-#include <cstring>
-#include <iostream>
-#include <string>
-#include <vector>
-
namespace {
#ifndef CMAKE_BOOTSTRAP
const char* cmDocumentationName[][2] = {
@@ -100,7 +101,7 @@ int do_command(int ac, char const* const* av)
std::vector<std::string> args;
args.reserve(ac - 1);
args.emplace_back(av[0]);
- cmAppend(args, av + 2, av + ac);
+ cm::append(args, av + 2, av + ac);
return cmcmd::ExecuteCMakeCommand(args);
}