From 60b3f216c18aa317656433bcc0b724e6abd8d02f Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 13 Oct 2016 00:18:22 +0200 Subject: cmTarget: Remove mutable marker from properties --- Source/cmGeneratorTarget.cxx | 2 +- Source/cmTarget.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 7eb0ebf..d622ad9 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -3950,7 +3950,7 @@ void cmGeneratorTarget::ComputeVersionedName(std::string& vName, std::vector cmGeneratorTarget::GetPropertyKeys() const { - cmPropertyMap propsObject = this->Target->GetProperties(); + cmPropertyMap const& propsObject = this->Target->GetProperties(); std::vector props; props.reserve(propsObject.size()); for (cmPropertyMap::const_iterator it = propsObject.begin(); diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 3d88688..1c81081 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -208,7 +208,7 @@ public: } // Get the properties - cmPropertyMap& GetProperties() const { return this->Properties; } + cmPropertyMap const& GetProperties() const { return this->Properties; } bool GetMappedConfig(std::string const& desired_config, const char** loc, const char** imp, std::string& suffix) const; @@ -282,7 +282,7 @@ private: bool implib) const; private: - mutable cmPropertyMap Properties; + cmPropertyMap Properties; std::set SystemIncludeDirectories; std::set LinkDirectoriesEmmitted; std::set Utilities; -- cgit v0.12