diff options
author | Brad King <brad.king@kitware.com> | 2007-05-28 14:25:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-28 14:25:03 (GMT) |
commit | 3f2dd9bc54d1dfc47fcf8e22979e409ad50e875a (patch) | |
tree | a0aa1d56e870d1a6b758de964cf2bcbb9a24868a /Source/cmTarget.h | |
parent | ba8ec0d5cf2efac0107841dfcfb2534852d3bfe7 (diff) | |
download | CMake-3f2dd9bc54d1dfc47fcf8e22979e409ad50e875a.zip CMake-3f2dd9bc54d1dfc47fcf8e22979e409ad50e875a.tar.gz CMake-3f2dd9bc54d1dfc47fcf8e22979e409ad50e875a.tar.bz2 |
ENH: Made cmTarget::GetSourceFiles method return reference to const so addition of cmSourceFile pointers must be done with an access method in cmTarget.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 454c95d..97f574d 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -89,7 +89,9 @@ public: /** * Get the list of the source files used by this target */ - std::vector<cmSourceFile*> &GetSourceFiles() {return this->SourceFiles;} + std::vector<cmSourceFile*> const &GetSourceFiles() + {return this->SourceFiles;} + void AddSourceFile(cmSourceFile* sf) { this->SourceFiles.push_back(sf); } /** * Get the list of the source files used by this target |