diff options
author | Brad King <brad.king@kitware.com> | 2007-05-28 13:59:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-28 13:59:08 (GMT) |
commit | d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab (patch) | |
tree | 767c7ec525b6777dbb6a300a73c8a717b2eaf0a6 /Source/cmFLTKWrapUICommand.cxx | |
parent | 00c9964a8c96e493a6d1d320a7b85f2b705e501c (diff) | |
download | CMake-d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab.zip CMake-d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab.tar.gz CMake-d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab.tar.bz2 |
ENH: Made cmTarget::GetSourceLists return a reference to const so that all additions of sources must go through access methods in cmTarget.
Diffstat (limited to 'Source/cmFLTKWrapUICommand.cxx')
-rw-r--r-- | Source/cmFLTKWrapUICommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx index d3d6f28..6b2d611 100644 --- a/Source/cmFLTKWrapUICommand.cxx +++ b/Source/cmFLTKWrapUICommand.cxx @@ -123,7 +123,7 @@ void cmFLTKWrapUICommand::FinalPass() // people should add the srcs to the target themselves, but the old command // didn't support that, so check and see if they added the files in and if // they didn;t then print a warning and add then anyhow - std::vector<std::string> srcs = + std::vector<std::string> const& srcs = this->Makefile->GetTargets()[this->Target].GetSourceLists(); bool found = false; for (unsigned int i = 0; i < srcs.size(); ++i) |