diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-12 22:06:05 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-13 14:27:23 (GMT) |
commit | 9ad804ac7be18efb92040434808f89174586b13d (patch) | |
tree | f439c944534f4ad1e01a5ec7810369b67b36de81 /Source/cmGeneratorTarget.h | |
parent | c725bb3cbd51edd4043f81d01b7a01bbd42adb2f (diff) | |
download | CMake-9ad804ac7be18efb92040434808f89174586b13d.zip CMake-9ad804ac7be18efb92040434808f89174586b13d.tar.gz CMake-9ad804ac7be18efb92040434808f89174586b13d.tar.bz2 |
cmGeneratorTarget: Constify cmSourceFile* in containers.
Some of them will be used with other APIs which require value_type
to be cmSourceFile const*.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 1c4276c..139e736 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -32,19 +32,19 @@ public: bool GetPropertyAsBool(const std::string& prop) const; void GetSourceFiles(std::vector<cmSourceFile*>& files) const; - void GetObjectSources(std::vector<cmSourceFile*> &) const; + void GetObjectSources(std::vector<cmSourceFile const*> &) const; const std::string& GetObjectName(cmSourceFile const* file); void AddObject(cmSourceFile const* sf, std::string const&name); bool HasExplicitObjectName(cmSourceFile const* file) const; void AddExplicitObjectName(cmSourceFile const* sf); - void GetResxSources(std::vector<cmSourceFile*>&) const; - void GetIDLSources(std::vector<cmSourceFile*>&) const; - void GetExternalObjects(std::vector<cmSourceFile*>&) const; - void GetHeaderSources(std::vector<cmSourceFile*>&) const; - void GetExtraSources(std::vector<cmSourceFile*>&) const; - void GetCustomCommands(std::vector<cmSourceFile*>&) const; + void GetResxSources(std::vector<cmSourceFile const*>&) const; + void GetIDLSources(std::vector<cmSourceFile const*>&) const; + void GetExternalObjects(std::vector<cmSourceFile const*>&) const; + void GetHeaderSources(std::vector<cmSourceFile const*>&) const; + void GetExtraSources(std::vector<cmSourceFile const*>&) const; + void GetCustomCommands(std::vector<cmSourceFile const*>&) const; void GetExpectedResxHeaders(std::set<std::string>&) const; cmTarget* Target; @@ -117,7 +117,7 @@ public: struct ResxData { mutable std::set<std::string> ExpectedResxHeaders; - mutable std::vector<cmSourceFile*> ResxSources; + mutable std::vector<cmSourceFile const*> ResxSources; }; private: friend class cmTargetTraceDependencies; @@ -127,7 +127,7 @@ private: std::map<cmSourceFile const*, std::string> Objects; std::set<cmSourceFile const*> ExplicitObjectName; - mutable std::vector<cmSourceFile*> ObjectSources; + mutable std::vector<cmSourceFile const*> ObjectSources; std::vector<cmTarget*> ObjectLibraries; mutable std::map<std::string, std::vector<std::string> > SystemIncludesCache; |