Salome HOME
patch for incorrect compilation hydro/imps_2017_salome_83 v2.1
authorasl <asl@opencascade.com>
Fri, 10 Nov 2017 14:16:14 +0000 (17:16 +0300)
committerasl <asl@opencascade.com>
Fri, 10 Nov 2017 14:16:14 +0000 (17:16 +0300)
src/CurveCreator/CurveCreator_Section.cxx

index 0052bcbec2b7e68862159bb7f07376522a891b7e..51f83fab663475c8890880c93949b6e63d6a2694 100644 (file)
@@ -36,13 +36,16 @@ Handle(TColgp_HArray1OfPnt) CurveCreator_Section::GetDifferentPoints( int theDim
 
   std::vector<gp_Pnt> aTmpPoints;
 
+  CurveCreator::Coordinates::const_iterator aPIt = myPoints.begin();
+  CurveCreator::Coordinates::const_iterator aPItLast = myPoints.end();
+
+  gp_Pnt aFirstPoint;
+  gp_Pnt aPoint;
+
   if( myPoints.size() > 0 )
   {
-    CurveCreator::Coordinates::const_iterator aPIt = myPoints.begin();
-    CurveCreator::Coordinates::const_iterator aPItLast = myPoints.end();
-    const gp_Pnt aFirstPoint(
-      *aPIt, *(aPIt + 1), (theDimension == 2) ? 0 : *(aPIt + 2));
-    gp_Pnt aPoint = aFirstPoint;
+    aFirstPoint = gp_Pnt(*aPIt, *(aPIt + 1), (theDimension == 2) ? 0 : *(aPIt + 2));
+    aPoint = aFirstPoint;
     aTmpPoints.push_back(aPoint);
   }