summaryrefslogtreecommitdiff
path: root/Source/cmFLTKWrapUICommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-28 10:11:44 -0400
committerBrad King <brad.king@kitware.com>2007-05-28 10:11:44 -0400
commitba8ec0d5cf2efac0107841dfcfb2534852d3bfe7 (patch)
tree5f02684355fcaecf75af6ef43f8c3218a441134a /Source/cmFLTKWrapUICommand.cxx
parentd2f62e6ac35a742a762ab6e493cdb4914e6ed1ab (diff)
downloadcmake-ba8ec0d5cf2efac0107841dfcfb2534852d3bfe7.tar.gz
ENH: Made cmSourceFile::GetDepends return reference to const so dependencies can be added only by an access method in cmSourceFile.
Diffstat (limited to 'Source/cmFLTKWrapUICommand.cxx')
-rw-r--r--Source/cmFLTKWrapUICommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx
index 6b2d611106..f761a59c73 100644
--- a/Source/cmFLTKWrapUICommand.cxx
+++ b/Source/cmFLTKWrapUICommand.cxx
@@ -94,8 +94,8 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args)
no_working_dir);
cmSourceFile *sf = this->Makefile->GetSource(cxxres.c_str());
- sf->GetDepends().push_back(hname);
- sf->GetDepends().push_back(origname);
+ sf->AddDepend(hname.c_str());
+ sf->AddDepend(origname.c_str());
this->GeneratedSourcesClasses.push_back(sf);
}
}