From 782c5c270f4aee955c0868d23e677ba2015d3efd Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 13 Sep 2007 09:14:46 -0400 Subject: COMP: Fix shadowed local warning by scoping the previous decl properly. --- Source/cmGlobalXCodeGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 6b019e9..ee630bc 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1489,11 +1489,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, std::string dirs; std::vector includes; this->CurrentLocalGenerator->GetIncludeDirectories(includes); - std::vector::iterator i = includes.begin(); std::string fdirs; std::set emitted; emitted.insert("/System/Library/Frameworks"); - for(;i != includes.end(); ++i) + for(std::vector::iterator i = includes.begin(); + i != includes.end(); ++i) { if(cmSystemTools::IsPathToFramework(i->c_str())) { -- cgit v0.12