mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
cmNinjaTargetGenerator: Reduce string copies in ConvertToNinjaPath wrapper
The global generator's method returns a reference to a cached value. Return that from the wrapper too.
This commit is contained in:
@@ -101,7 +101,7 @@ protected:
|
||||
const std::string& language,
|
||||
const std::string& config);
|
||||
|
||||
std::string ConvertToNinjaPath(const std::string& path) const
|
||||
std::string const& ConvertToNinjaPath(const std::string& path) const
|
||||
{
|
||||
return this->GetGlobalGenerator()->ConvertToNinjaPath(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user