summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-08-12 18:18:46 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2010-08-12 18:18:46 (GMT)
commitbd510fe4ea43ed6adfb28dc830db4489b59ef2aa (patch)
treefa46424a8635e9dcec64441b57130ec4a9e440f6
parent31a313d47043923bc722554175912e75a03a13f6 (diff)
downloadCMake-bd510fe4ea43ed6adfb28dc830db4489b59ef2aa.zip
CMake-bd510fe4ea43ed6adfb28dc830db4489b59ef2aa.tar.gz
CMake-bd510fe4ea43ed6adfb28dc830db4489b59ef2aa.tar.bz2
CPack: Avoid member shadowing after API refactor (part2)
After converting method arguments to members we need to avoid use of the same names as local variables and other method arguments. One more fix.
-rw-r--r--Source/CPack/cmCPackGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx
index 37b8d5a..4ae2d1f 100644
--- a/Source/CPack/cmCPackGenerator.cxx
+++ b/Source/CPack/cmCPackGenerator.cxx
@@ -345,7 +345,7 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
"Cannot find any files in the installed directory" << std::endl);
return 0;
}
- std::vector<std::string>& files = gl.GetFiles();
+ files = gl.GetFiles();
std::vector<std::string>::iterator gfit;
std::vector<cmsys::RegularExpression>::iterator regIt;
for ( gfit = files.begin(); gfit != files.end(); ++ gfit )