Skip to content
Snippets Groups Projects
Commit efb8d7b4 authored by Brad King's avatar Brad King
Browse files

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.
parent fb3a5757
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment