diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-07-24 01:38:40 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2021-07-26 20:40:14 (GMT) |
commit | c26f15c66dcf45c2245315251b31b8f0b671321b (patch) | |
tree | 4e7c11457d7ec4309792a44927bcd6b3e8544c77 /Source/cmConditionEvaluator.h | |
parent | fab389002543f9a7c46522956dd8ce6bfe1752a4 (diff) | |
download | CMake-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.h | 4 |
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; |