summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-28 14:03:59 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-28 15:47:26 (GMT)
commit2f19e53705a6e60af37964c146a742d845f84870 (patch)
treea549a8578157f66874a96ab8518a9fb0c135a855 /Source/cmSystemTools.cxx
parent2c5454f227027552966519c40feb2732b37ec542 (diff)
downloadCMake-2f19e53705a6e60af37964c146a742d845f84870.zip
CMake-2f19e53705a6e60af37964c146a742d845f84870.tar.gz
CMake-2f19e53705a6e60af37964c146a742d845f84870.tar.bz2
cmSystemTool: Let HelpFileName accept a cm::string_view
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 3715cc6..de68bf4 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -189,8 +189,9 @@ std::string cmSystemTools::EscapeQuotes(cm::string_view str)
return result;
}
-std::string cmSystemTools::HelpFileName(std::string name)
+std::string cmSystemTools::HelpFileName(cm::string_view str)
{
+ std::string name(str);
cmSystemTools::ReplaceString(name, "<", "");
cmSystemTools::ReplaceString(name, ">", "");
return name;