Warnings on vc14 were eliminated IR-2017-02-02
authorapn <apn@opencascade.com>
Fri, 3 Feb 2017 08:57:09 +0000 (11:57 +0300)
committerapn <apn@opencascade.com>
Fri, 3 Feb 2017 08:57:09 +0000 (11:57 +0300)
src/STEPCAFControl/STEPCAFControl_Reader.cxx
src/XCAFDoc/XCAFDoc_View.cxx

index 674093f..537614b 100644 (file)
@@ -4317,7 +4317,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadViews(const Handle(XSControl_WorkSes
       }
       else if (anIter.Value()->IsKind(STANDARD_TYPE(StepVisual_AnnotationPlane))) {
         Handle(StepVisual_AnnotationPlane) aPlane = Handle(StepVisual_AnnotationPlane)::DownCast(anIter.Value());
-        for (Standard_Integer i = 1; i <= aPlane->NbElements(); i++) {
+        for (Standard_Integer j = 1; j <= aPlane->NbElements(); j++) {
           Interface_EntityIterator aDMIAIter = aGraph.Sharings(anIter.Value());
           for (; aDMIAIter.More(); aDMIAIter.Next()) {
             if (!aDMIAIter.Value()->IsKind(STANDARD_TYPE(StepAP242_DraughtingModelItemAssociation)))
index 73c0ccf..01f5da5 100644 (file)
@@ -253,9 +253,9 @@ Handle(XCAFView_Object) XCAFDoc_View::GetObject()  const
     anObj->CreateGDTPoints(aPointsLabel.NbChildren());
     for (Standard_Integer i = 1; i <= aPointsLabel.NbChildren(); i++) {
       gp_Pnt aPoint;
-      Handle(TDataXtd_Point) aPointAttr;
-      aPointsLabel.FindChild(i).FindAttribute(TDataXtd_Point::GetID(), aPointAttr);
-      TDataXtd_Geometry::Point(aPointAttr->Label(), aPoint);
+      Handle(TDataXtd_Point) aGDTPointAttr;
+      aPointsLabel.FindChild(i).FindAttribute(TDataXtd_Point::GetID(), aGDTPointAttr);
+      TDataXtd_Geometry::Point(aGDTPointAttr->Label(), aPoint);
       anObj->SetGDTPoint(i, aPoint);
     }
   }