summaryrefslogtreecommitdiffstats
path: root/Source/cmConditionEvaluator.h
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2021-07-24 01:38:40 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2021-07-26 20:40:14 (GMT)
commitc26f15c66dcf45c2245315251b31b8f0b671321b (patch)
tree4e7c11457d7ec4309792a44927bcd6b3e8544c77 /Source/cmConditionEvaluator.h
parentfab389002543f9a7c46522956dd8ce6bfe1752a4 (diff)
downloadCMake-c26f15c66dcf45c2245315251b31b8f0b671321b.zip
CMake-c26f15c66dcf45c2245315251b31b8f0b671321b.tar.gz
CMake-c26f15c66dcf45c2245315251b31b8f0b671321b.tar.bz2
Refactor: Use `cm::string_view` for static const literals
Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
Diffstat (limited to 'Source/cmConditionEvaluator.h')
-rw-r--r--Source/cmConditionEvaluator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmConditionEvaluator.h b/Source/cmConditionEvaluator.h
index cf00ede..ce25519 100644
--- a/Source/cmConditionEvaluator.h
+++ b/Source/cmConditionEvaluator.h
@@ -8,6 +8,8 @@
#include <string>
#include <vector>
+#include <cmext/string_view>
+
#include "cmExpandedCommandArgument.h"
#include "cmListFileCache.h"
#include "cmMessageType.h"
@@ -36,7 +38,7 @@ private:
cmProp GetVariableOrString(const cmExpandedCommandArgument& argument) const;
- bool IsKeyword(std::string const& keyword,
+ bool IsKeyword(cm::string_view keyword,
cmExpandedCommandArgument& argument) const;
bool GetBooleanValue(cmExpandedCommandArgument& arg) const;