diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-19 10:11:15 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-19 19:40:31 (GMT) |
commit | 04d398d3561453beb5e52db61810d98a832761ce (patch) | |
tree | ecc320c9cdafe89058d01c664c1802ddd6fecc4f /Source/cmTarget.cxx | |
parent | 50d152035da514005eaaa1d3e39e407676efd73c (diff) | |
download | CMake-04d398d3561453beb5e52db61810d98a832761ce.zip CMake-04d398d3561453beb5e52db61810d98a832761ce.tar.gz CMake-04d398d3561453beb5e52db61810d98a832761ce.tar.bz2 |
cmTarget: Make GetTargetSourceFileFlags const.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c9905b6..26b1e76 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -91,8 +91,8 @@ public: } ~cmTargetInternals(); typedef cmTarget::SourceFileFlags SourceFileFlags; - std::map<cmSourceFile const*, SourceFileFlags> SourceFlagsMap; - bool SourceFileFlagsConstructed; + mutable std::map<cmSourceFile const*, SourceFileFlags> SourceFlagsMap; + mutable bool SourceFileFlagsConstructed; // The backtrace when the target was created. cmListFileBacktrace Backtrace; @@ -577,7 +577,7 @@ void cmTarget::ProcessSourceExpression(std::string const& expr) //---------------------------------------------------------------------------- struct cmTarget::SourceFileFlags -cmTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) +cmTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) const { struct SourceFileFlags flags; this->ConstructSourceFileFlags(); @@ -591,7 +591,7 @@ cmTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) } //---------------------------------------------------------------------------- -void cmTarget::ConstructSourceFileFlags() +void cmTarget::ConstructSourceFileFlags() const { if(this->Internal->SourceFileFlagsConstructed) { |