summaryrefslogtreecommitdiffstats
path: root/Source/cmFLTKWrapUICommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-28 13:59:08 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-28 13:59:08 (GMT)
commitd2f62e6ac35a742a762ab6e493cdb4914e6ed1ab (patch)
tree767c7ec525b6777dbb6a300a73c8a717b2eaf0a6 /Source/cmFLTKWrapUICommand.cxx
parent00c9964a8c96e493a6d1d320a7b85f2b705e501c (diff)
downloadCMake-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.cxx2
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)