]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_Objects.cpp
Salome HOME
Get rid of compilation warnings. Part II. MSVC warnings.
[modules/shaper.git] / src / Model / Model_Objects.cpp
index d83240df3c9fba2e862dc9fe9a71e681a224ffae..69955315d99dfaa6886197997d7697067b2064a0 100644 (file)
@@ -893,10 +893,8 @@ void Model_Objects::synchronizeFeatures(
               ModelAPI_Tools::allResults(aFeature, aResults);
               std::list<ResultPtr>::iterator aResIter = aResults.begin();
               for(; aResIter != aResults.end(); aResIter++) {
-                std::list<std::shared_ptr<ModelAPI_Attribute> > anAttrs =
-                  (*aResIter)->data()->attributes("");
-                std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
-                for(; anAttr != anAttrs.end(); anAttr++)
+                anAttrs = (*aResIter)->data()->attributes("");
+                for(anAttr = anAttrs.begin(); anAttr != anAttrs.end(); anAttr++)
                   (*anAttr)->reinit();
               }
             }
@@ -1189,7 +1187,7 @@ TDF_Label Model_Objects::resultLabel(
 
 bool Model_Objects::hasCustomName(DataPtr theFeatureData,
                                   ResultPtr theResult,
-                                  int theResultIndex,
+                                  int /*theResultIndex*/,
                                   std::string& theParentName) const
 {
   ResultBodyPtr aBodyRes = std::dynamic_pointer_cast<ModelAPI_ResultBody>(theFeatureData->owner());