Warnings on vc14 were eliminated
[occt.git] / src / XCAFDoc / XCAFDoc_View.cxx
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);
     }
   }