diff options
author | Cengizhan Pasaoglu <cengizhanpasaoglu@gmail.com> | 2020-10-17 23:00:29 (GMT) |
---|---|---|
committer | Cengizhan Pasaoglu <cengizhanpasaoglu@gmail.com> | 2020-10-19 21:04:04 (GMT) |
commit | bd705788f67741df88bf153825a5943b4b518818 (patch) | |
tree | 356596cc5ca5d3f2ad2de7954257903301143bd8 /Source/cmGlobalNinjaGenerator.h | |
parent | c05e561474c422d23b9f1d29ccb5ceea0037477b (diff) | |
download | CMake-bd705788f67741df88bf153825a5943b4b518818.zip CMake-bd705788f67741df88bf153825a5943b4b518818.tar.gz CMake-bd705788f67741df88bf153825a5943b4b518818.tar.bz2 |
Constify some code as suggested by clang-tidy
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h index 8d6ebdc..94abb40 100644 --- a/Source/cmGlobalNinjaGenerator.h +++ b/Source/cmGlobalNinjaGenerator.h @@ -252,7 +252,7 @@ public: : GG(gg) { } - std::string operator()(std::string const& path) + std::string operator()(std::string const& path) const { return this->GG->ConvertToNinjaPath(path); } @@ -323,7 +323,7 @@ public: void AppendTargetOutputs(cmGeneratorTarget const* target, cmNinjaDeps& outputs, const std::string& config, - cmNinjaTargetDepends depends); + cmNinjaTargetDepends depends) const; void AppendTargetDepends(cmGeneratorTarget const* target, cmNinjaDeps& outputs, const std::string& config, const std::string& fileConfig, @@ -463,7 +463,7 @@ private: void CleanMetaData(); /// Write the common disclaimer text at the top of each build file. - void WriteDisclaimer(std::ostream& os); + void WriteDisclaimer(std::ostream& os) const; void WriteAssumedSourceDependencies(); |