diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-28 14:41:17 +0200 |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-28 17:47:26 +0200 |
commit | 1b30b28c042660c37f24d11a804ea697ea8601ef (patch) | |
tree | 92f10e8e4a4147a31955cbaa7f9223e6aa923cd0 /Source/cmOutputConverter.cxx | |
parent | 6675f785bec2d777720abbdc062f514bd838b879 (diff) | |
download | cmake-1b30b28c042660c37f24d11a804ea697ea8601ef.tar.gz |
cmOutputConverter: Let cmOutputConverterIsShellOperator accept cm::string_view
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r-- | Source/cmOutputConverter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index 55d9bd687b..132fdebbaf 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -71,9 +71,9 @@ std::string cmOutputConverter::ConvertDirectorySeparatorsForShell( return result; } -static bool cmOutputConverterIsShellOperator(const std::string& str) +static bool cmOutputConverterIsShellOperator(cm::string_view str) { - static std::set<std::string> const shellOperators{ + static std::set<cm::string_view> const shellOperators{ "<", ">", "<<", ">>", "|", "||", "&&", "&>", "1>", "2>", "2>&1", "1>&2" }; return (shellOperators.count(str) != 0); |