mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
cmSystemTool: Let HelpFileName accept a cm::string_view
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
static std::string EscapeQuotes(cm::string_view str);
|
||||
|
||||
/** Map help document name to file name. */
|
||||
static std::string HelpFileName(std::string);
|
||||
static std::string HelpFileName(cm::string_view);
|
||||
|
||||
/**
|
||||
* Returns a string that has whitespace removed from the start and the end.
|
||||
|
||||
Reference in New Issue
Block a user