diff options
author | Brad King <brad.king@kitware.com> | 2018-03-27 11:49:27 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-03-27 11:51:34 (GMT) |
commit | 99f3f6d528fb9e7e05c1618675d4c998fce3dd59 (patch) | |
tree | 92227dc65044c553cd4667068a9c6f9c1dc1d1d5 /Source/cmComputeLinkInformation.h | |
parent | df0cfdf60e9f090c1050e55643349fbb052a52c0 (diff) | |
parent | 85468e0754fb984aa5d042d07f8e52b67e969741 (diff) | |
download | CMake-99f3f6d528fb9e7e05c1618675d4c998fce3dd59.zip CMake-99f3f6d528fb9e7e05c1618675d4c998fce3dd59.tar.gz CMake-99f3f6d528fb9e7e05c1618675d4c998fce3dd59.tar.bz2 |
Merge topic 'const-members'
85468e0754 cmComputeLinkInformation: make some members const
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1886
Diffstat (limited to 'Source/cmComputeLinkInformation.h')
-rw-r--r-- | Source/cmComputeLinkInformation.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/cmComputeLinkInformation.h b/Source/cmComputeLinkInformation.h index 6c67fb4..65c12da 100644 --- a/Source/cmComputeLinkInformation.h +++ b/Source/cmComputeLinkInformation.h @@ -49,20 +49,20 @@ public: }; typedef std::vector<Item> ItemVector; ItemVector const& GetItems() const; - std::vector<std::string> const& GetDirectories(); - std::vector<std::string> const& GetDepends(); - std::vector<std::string> const& GetFrameworkPaths(); + std::vector<std::string> const& GetDirectories() const; + std::vector<std::string> const& GetDepends() const; + std::vector<std::string> const& GetFrameworkPaths() const; std::string GetLinkLanguage() const { return this->LinkLanguage; } - std::vector<std::string> const& GetRuntimeSearchPath(); + std::vector<std::string> const& GetRuntimeSearchPath() const; std::string const& GetRuntimeFlag() const { return this->RuntimeFlag; } std::string const& GetRuntimeSep() const { return this->RuntimeSep; } - void GetRPath(std::vector<std::string>& runtimeDirs, bool for_install); - std::string GetRPathString(bool for_install); - std::string GetChrpathString(); - std::set<cmGeneratorTarget const*> const& GetSharedLibrariesLinked(); + void GetRPath(std::vector<std::string>& runtimeDirs, bool for_install) const; + std::string GetRPathString(bool for_install) const; + std::string GetChrpathString() const; + std::set<cmGeneratorTarget const*> const& GetSharedLibrariesLinked() const; std::string const& GetRPathLinkFlag() const { return this->RPathLinkFlag; } - std::string GetRPathLinkString(); + std::string GetRPathLinkString() const; std::string GetConfig() const { return this->Config; } private: @@ -78,13 +78,13 @@ private: std::set<cmGeneratorTarget const*> SharedLibrariesLinked; // Context information. - cmGeneratorTarget const* Target; - cmMakefile* Makefile; - cmGlobalGenerator* GlobalGenerator; - cmake* CMakeInstance; + cmGeneratorTarget const* const Target; + cmMakefile* const Makefile; + cmGlobalGenerator* const GlobalGenerator; + cmake* const CMakeInstance; // Configuration information. - std::string Config; + std::string const Config; std::string LinkLanguage; // Modes for dealing with dependent shared libraries. |