summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmitCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r--Source/CTest/cmCTestSubmitCommand.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx
index a2dc615..288d5b4 100644
--- a/Source/CTest/cmCTestSubmitCommand.cxx
+++ b/Source/CTest/cmCTestSubmitCommand.cxx
@@ -7,6 +7,7 @@
#include <utility>
#include <cm/memory>
+#include <cm/string_view>
#include <cm/vector>
#include <cmext/algorithm>
#include <cmext/string_view>
@@ -173,12 +174,12 @@ void cmCTestSubmitCommand::BindArguments()
}
void cmCTestSubmitCommand::CheckArguments(
- std::vector<std::string> const& keywords)
+ std::vector<cm::string_view> const& keywords)
{
this->PartsMentioned =
- !this->Parts.empty() || cm::contains(keywords, "PARTS");
+ !this->Parts.empty() || cm::contains(keywords, "PARTS"_s);
this->FilesMentioned =
- !this->Files.empty() || cm::contains(keywords, "FILES");
+ !this->Files.empty() || cm::contains(keywords, "FILES"_s);
cm::erase_if(this->Parts, [this](std::string const& arg) -> bool {
cmCTest::Part p = this->CTest->GetPartFromName(arg);