summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.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/cmVisualStudio10TargetGenerator.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/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 59e20d5..2af7036 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1413,7 +1413,7 @@ void cmVisualStudio10TargetGenerator::WriteEvent(
void cmVisualStudio10TargetGenerator::WriteProjectReferences()
{
- cmGlobalGenerator::TargetDependSet& depends
+ cmGlobalGenerator::TargetDependSet const& depends
= this->GlobalGenerator->GetTargetDirectDepends(*this->Target);
this->WriteString("<ItemGroup>\n", 1);
for( cmGlobalGenerator::TargetDependSet::const_iterator i = depends.begin();