mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
source: Pass cm::string_view by value
This commit is contained in:
committed by
Brad King
parent
1c3300998f
commit
0c4040057a
@@ -75,7 +75,7 @@ protected:
|
||||
|
||||
std::string GetInstallPrefix() const
|
||||
{
|
||||
cm::string_view const& prefixWithSlash = this->GetImportPrefixWithSlash();
|
||||
cm::string_view const prefixWithSlash = this->GetImportPrefixWithSlash();
|
||||
return std::string(prefixWithSlash.data(), prefixWithSlash.length() - 1);
|
||||
}
|
||||
virtual char GetConfigFileNameSeparator() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user