From bd510fe4ea43ed6adfb28dc830db4489b59ef2aa Mon Sep 17 00:00:00 2001 From: Eric NOULARD Date: Thu, 12 Aug 2010 20:18:46 +0200 Subject: [PATCH] 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. --- Source/CPack/cmCPackGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 37b8d5aad..4ae2d1fe6 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& files = gl.GetFiles(); + files = gl.GetFiles(); std::vector::iterator gfit; std::vector::iterator regIt; for ( gfit = files.begin(); gfit != files.end(); ++ gfit )