summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-08-20 17:16:43 (GMT)
committerBrad King <brad.king@kitware.com>2010-08-25 21:05:01 (GMT)
commit95b3bb5dbcb6021f07329f5bc400b1a205386970 (patch)
tree4e8860daa2796cb31fca0e3db79d544cd167f224 /Source/cmGlobalGenerator.cxx
parente752cff8fd9c5f27e066d5916221bd609bfeba29 (diff)
downloadCMake-95b3bb5dbcb6021f07329f5bc400b1a205386970.zip
CMake-95b3bb5dbcb6021f07329f5bc400b1a205386970.tar.gz
CMake-95b3bb5dbcb6021f07329f5bc400b1a205386970.tar.bz2
Restore GetTargetDirectDepends const return
The returned set should never be modified. Restore 'const' correctness unnecessarily removed by commit 6903d2df (remove const, 2008-01-30).
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index bd26b5f..fbc578b 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1487,7 +1487,7 @@ void cmGlobalGenerator::FillLocalGeneratorToTargetMap()
// Add dependencies of the included target. An excluded
// target may still be included if it is a dependency of a
// non-excluded target.
- TargetDependSet & tgtdeps = this->GetTargetDirectDepends(target);
+ TargetDependSet const& tgtdeps = this->GetTargetDirectDepends(target);
for(TargetDependSet::const_iterator ti = tgtdeps.begin();
ti != tgtdeps.end(); ++ti)
{
@@ -1879,7 +1879,7 @@ void cmGlobalGenerator::AppendDirectoryForConfig(const char*, const char*,
}
//----------------------------------------------------------------------------
-cmGlobalGenerator::TargetDependSet &
+cmGlobalGenerator::TargetDependSet const&
cmGlobalGenerator::GetTargetDirectDepends(cmTarget & target)
{
return this->TargetDependencies[&target];