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/cmQTWrapUICommand.cxx | |
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/cmQTWrapUICommand.cxx')
-rw-r--r-- | Source/cmQTWrapUICommand.cxx | 8 |
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); |