cmOutputConverter: Let cmOutputConverterIsShellOperator accept cm::string_view

This commit is contained in:
Sebastian Holtermann committed 2019-07-28 17:47:26 +02:00
1 parent 6675f785be
commit 1b30b28c04
1 file changed
+2 -2
+2 -2
View File
@@ -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);