diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-08 10:21:35 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-10 18:38:53 (GMT) |
commit | 2e5d1990f382aa42e8a0ad34117ee1e5a9187153 (patch) | |
tree | dba4b15ee93a3b2c34f47345214a8c38278009f7 /Source/cmGlobalNinjaGenerator.cxx | |
parent | b3701f9a5213f2ff5b2bc197e9af5d1f2ff68a9c (diff) | |
download | CMake-2e5d1990f382aa42e8a0ad34117ee1e5a9187153.zip CMake-2e5d1990f382aa42e8a0ad34117ee1e5a9187153.tar.gz CMake-2e5d1990f382aa42e8a0ad34117ee1e5a9187153.tar.bz2 |
Ninja: Constify
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index f5a0e68..adb5a95 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -830,7 +830,8 @@ static void EnsureTrailingSlash(std::string& path) #endif } -std::string cmGlobalNinjaGenerator::ConvertToNinjaPath(const std::string& path) +std::string cmGlobalNinjaGenerator::ConvertToNinjaPath( + const std::string& path) const { cmLocalNinjaGenerator* ng = static_cast<cmLocalNinjaGenerator*>(this->LocalGenerators[0]); @@ -1421,7 +1422,8 @@ void cmGlobalNinjaGenerator::InitOutputPathPrefix() EnsureTrailingSlash(this->OutputPathPrefix); } -std::string cmGlobalNinjaGenerator::NinjaOutputPath(std::string const& path) +std::string cmGlobalNinjaGenerator::NinjaOutputPath( + std::string const& path) const { if (!this->HasOutputPathPrefix() || cmSystemTools::FileIsFullPath(path)) { return path; |