Переглянути джерело

COMP: Fixed shadowed local warning.

Brad King 18 роки тому
батько
коміт
b4fb25941a
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      Source/cmGlobalXCodeGenerator.cxx

+ 3 - 3
Source/cmGlobalXCodeGenerator.cxx

@@ -2067,11 +2067,11 @@ void cmGlobalXCodeGenerator::CreateGroups(cmLocalGenerator* root,
                                           headersVec);
                                           headersVec);
         cmCustomCommandLines commandLines;
         cmCustomCommandLines commandLines;
         std::vector<std::string> depends;
         std::vector<std::string> depends;
-        for(std::vector<std::string>::iterator i = headersVec.begin();
-            i != headersVec.end(); ++i)
+        for(std::vector<std::string>::iterator h = headersVec.begin();
+            h != headersVec.end(); ++i)
           {
           {
           cmSourceFile* sf 
           cmSourceFile* sf 
-            = this->CurrentMakefile->GetOrCreateSource(i->c_str());
+            = this->CurrentMakefile->GetOrCreateSource(h->c_str());
           classes.push_back(sf);
           classes.push_back(sf);
           }
           }
         }
         }