summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUploadCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-02 16:53:27 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-09 10:19:20 (GMT)
commit968477517edb030cee7f9160286b31d4cda4a516 (patch)
tree855e1bebd0de9caba303a98bd4c109f6b5ecfa1f /Source/CTest/cmCTestUploadCommand.cxx
parent348b60d19deec458e2300949900f682002aecf44 (diff)
downloadCMake-968477517edb030cee7f9160286b31d4cda4a516.zip
CMake-968477517edb030cee7f9160286b31d4cda4a516.tar.gz
CMake-968477517edb030cee7f9160286b31d4cda4a516.tar.bz2
Refactoring: suppress cmEraseIf in favor of cm::erase_if
Diffstat (limited to 'Source/CTest/cmCTestUploadCommand.cxx')
-rw-r--r--Source/CTest/cmCTestUploadCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestUploadCommand.cxx b/Source/CTest/cmCTestUploadCommand.cxx
index d0e3848..eaef1ca 100644
--- a/Source/CTest/cmCTestUploadCommand.cxx
+++ b/Source/CTest/cmCTestUploadCommand.cxx
@@ -4,11 +4,11 @@
#include <set>
#include <sstream>
-#include <vector>
+
+#include <cm/vector>
#include "cm_static_string_view.hxx"
-#include "cmAlgorithms.h"
#include "cmCTest.h"
#include "cmCTestUploadHandler.h"
#include "cmMakefile.h"
@@ -24,7 +24,7 @@ void cmCTestUploadCommand::BindArguments()
void cmCTestUploadCommand::CheckArguments(std::vector<std::string> const&)
{
- cmEraseIf(this->Files, [this](std::string const& arg) -> bool {
+ cm::erase_if(this->Files, [this](std::string const& arg) -> bool {
if (!cmSystemTools::FileExists(arg)) {
std::ostringstream e;
e << "File \"" << arg << "\" does not exist. Cannot submit "