summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-28 14:11:44 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-28 14:11:44 (GMT)
commitba8ec0d5cf2efac0107841dfcfb2534852d3bfe7 (patch)
tree5f02684355fcaecf75af6ef43f8c3218a441134a /Source/cmSourceFile.h
parentd2f62e6ac35a742a762ab6e493cdb4914e6ed1ab (diff)
downloadCMake-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.h2
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