diff options
author | Brad King <brad.king@kitware.com> | 2022-06-16 18:47:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-05 20:34:57 (GMT) |
commit | 1ee5a4a548c62e5c382f3497be82aac36a99e485 (patch) | |
tree | 5a95ec119c06a3cac5c83edb5bc4548d929c89e6 /Source/CTest/cmCTestCoverageCommand.h | |
parent | fd3ed41109db9682bbdcb5e5d3249b6654322ca6 (diff) | |
download | CMake-1ee5a4a548c62e5c382f3497be82aac36a99e485.zip CMake-1ee5a4a548c62e5c382f3497be82aac36a99e485.tar.gz CMake-1ee5a4a548c62e5c382f3497be82aac36a99e485.tar.bz2 |
cmArgumentParser: Avoid allocating copies of keyword strings
Diffstat (limited to 'Source/CTest/cmCTestCoverageCommand.h')
-rw-r--r-- | Source/CTest/cmCTestCoverageCommand.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestCoverageCommand.h b/Source/CTest/cmCTestCoverageCommand.h index 9344852..20bb1a8 100644 --- a/Source/CTest/cmCTestCoverageCommand.h +++ b/Source/CTest/cmCTestCoverageCommand.h @@ -9,6 +9,7 @@ #include <vector> #include <cm/memory> +#include <cm/string_view> #include "cmCTestHandlerCommand.h" #include "cmCommand.h" @@ -41,7 +42,7 @@ public: protected: void BindArguments() override; - void CheckArguments(std::vector<std::string> const& keywords) override; + void CheckArguments(std::vector<cm::string_view> const& keywords) override; cmCTestGenericHandler* InitializeHandler() override; bool LabelsMentioned; |