mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03: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:
1 parent
fb3a57575a
commit
efb8d7b4a1
1 file changed
+1
-1
@@ -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