summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-28 14:44:05 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-28 17:47:26 +0200
commita929255dec9e46ccc27d7b44d000a2e568cbfd99 (patch)
treede62bca6eb968bc84231e762ba5f566fae13a3bc /Source/cmOutputConverter.cxx
parent1b30b28c042660c37f24d11a804ea697ea8601ef (diff)
downloadcmake-a929255dec9e46ccc27d7b44d000a2e568cbfd99.tar.gz
cmOutputConverter: Let cmOutputConverterIsShellOperator accept cm::string_view
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r--Source/cmOutputConverter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 132fdebbaf..bd5dffe129 100644
--- a/Source/cmOutputConverter.cxx
+++ b/Source/cmOutputConverter.cxx
@@ -53,9 +53,9 @@ std::string cmOutputConverter::ConvertToOutputFormat(const std::string& source,
}
std::string cmOutputConverter::ConvertDirectorySeparatorsForShell(
- const std::string& source) const
+ cm::string_view source) const
{
- std::string result = source;
+ std::string result(source);
// For the MSYS shell convert drive letters to posix paths, so
// that c:/some/path becomes /c/some/path. This is needed to
// avoid problems with the shell path translation.