diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-01-02 16:53:27 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-01-09 10:19:20 (GMT) |
commit | 968477517edb030cee7f9160286b31d4cda4a516 (patch) | |
tree | 855e1bebd0de9caba303a98bd4c109f6b5ecfa1f /Source/CTest/cmCTestSubmitCommand.cxx | |
parent | 348b60d19deec458e2300949900f682002aecf44 (diff) | |
download | CMake-968477517edb030cee7f9160286b31d4cda4a516.zip CMake-968477517edb030cee7f9160286b31d4cda4a516.tar.gz CMake-968477517edb030cee7f9160286b31d4cda4a516.tar.bz2 |
Refactoring: suppress cmEraseIf in favor of cm::erase_if
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitCommand.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx index 46b00b1..acb75b2 100644 --- a/Source/CTest/cmCTestSubmitCommand.cxx +++ b/Source/CTest/cmCTestSubmitCommand.cxx @@ -7,6 +7,7 @@ #include <utility> #include <cm/memory> +#include <cm/vector> #include "cm_static_string_view.hxx" @@ -174,7 +175,7 @@ void cmCTestSubmitCommand::CheckArguments( this->PartsMentioned = !this->Parts.empty() || cmContains(keywords, "PARTS"); this->FilesMentioned = !this->Files.empty() || cmContains(keywords, "FILES"); - cmEraseIf(this->Parts, [this](std::string const& arg) -> bool { + cm::erase_if(this->Parts, [this](std::string const& arg) -> bool { cmCTest::Part p = this->CTest->GetPartFromName(arg.c_str()); if (p == cmCTest::PartCount) { std::ostringstream e; @@ -185,7 +186,7 @@ void cmCTestSubmitCommand::CheckArguments( return false; }); - 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 " |