summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
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/cmCPluginAPI.cxx
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/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index fc442a1..dff6035 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -555,7 +555,7 @@ void CCONV cmSourceFileSetProperty(void *arg,const char *prop,
void CCONV cmSourceFileAddDepend(void *arg, const char *depend)
{
cmSourceFile *sf = static_cast<cmSourceFile *>(arg);
- sf->GetDepends().push_back(depend);
+ sf->AddDepend(depend);
}
void CCONV cmSourceFileSetName(void *arg, const char* name, const char* dir,