diff options
author | Brad King <brad.king@kitware.com> | 2007-05-28 14:11:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-28 14:11:44 (GMT) |
commit | ba8ec0d5cf2efac0107841dfcfb2534852d3bfe7 (patch) | |
tree | 5f02684355fcaecf75af6ef43f8c3218a441134a /Source/cmSourceFile.h | |
parent | d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab (diff) | |
download | CMake-ba8ec0d5cf2efac0107841dfcfb2534852d3bfe7.zip CMake-ba8ec0d5cf2efac0107841dfcfb2534852d3bfe7.tar.gz CMake-ba8ec0d5cf2efac0107841dfcfb2534852d3bfe7.tar.bz2 |
ENH: Made cmSourceFile::GetDepends return reference to const so dependencies can be added only by an access method in cmSourceFile.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r-- | Source/cmSourceFile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index 7f00483..f25aa66 100644 --- a/Source/cmSourceFile.h +++ b/Source/cmSourceFile.h @@ -102,7 +102,7 @@ public: * Return the vector that holds the list of dependencies */ const std::vector<std::string> &GetDepends() const {return this->Depends;} - std::vector<std::string> &GetDepends() {return this->Depends;} + void AddDepend(const char* d) { this->Depends.push_back(d); } /** * Get the source name without last extension |