summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapUICommand.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/cmQTWrapUICommand.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/cmQTWrapUICommand.cxx')
-rw-r--r--Source/cmQTWrapUICommand.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmQTWrapUICommand.cxx b/Source/cmQTWrapUICommand.cxx
index 9bec97f..2f7982d 100644
--- a/Source/cmQTWrapUICommand.cxx
+++ b/Source/cmQTWrapUICommand.cxx
@@ -86,10 +86,10 @@ bool cmQTWrapUICommand::InitialPass(std::vector<std::string> const& argsIn)
std::string hname = header_file.GetFullPath();
this->WrapUserInterface.push_back(origname);
// add starting depends
- moc_file.GetDepends().push_back(hname);
- source_file.GetDepends().push_back(hname);
- source_file.GetDepends().push_back(origname);
- header_file.GetDepends().push_back(origname);
+ moc_file.AddDepend(hname.c_str());
+ source_file.AddDepend(hname.c_str());
+ source_file.AddDepend(origname.c_str());
+ header_file.AddDepend(origname.c_str());
this->WrapHeadersClasses.push_back(header_file);
this->WrapSourcesClasses.push_back(source_file);
this->WrapMocClasses.push_back(moc_file);