summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2020-03-24 16:51:39 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2020-03-24 18:40:44 (GMT)
commitec7928ef266599f1de08b30da84a42d7da3fd6a0 (patch)
tree6971f37ffafd1b7dade611b18d1f7bd39c1c3b1d /Source/cmCTest.h
parent94de927cab19609aeeff032c64f16cfd257fca2f (diff)
downloadCMake-ec7928ef266599f1de08b30da84a42d7da3fd6a0.zip
CMake-ec7928ef266599f1de08b30da84a42d7da3fd6a0.tar.gz
CMake-ec7928ef266599f1de08b30da84a42d7da3fd6a0.tar.bz2
use _s to construct static string_views at several places
This should avoid the runtime strlen() call.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 7177b76..984be13 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -13,6 +13,8 @@
#include <string>
#include <vector>
+#include <cm/string_view>
+
#include "cmDuration.h"
#include "cmProcessOutput.h"
@@ -507,8 +509,8 @@ private:
std::vector<std::string> const& files);
/** Check if the argument is the one specified */
- bool CheckArgument(const std::string& arg, const char* varg1,
- const char* varg2 = nullptr);
+ static bool CheckArgument(const std::string& arg, cm::string_view varg1,
+ const char* varg2 = nullptr);
/** Output errors from a test */
void OutputTestErrors(std::vector<char> const& process_output);