From: asl Date: Thu, 25 Jun 2015 06:26:30 +0000 (+0300) Subject: patch for correct compilation on Linux X-Git-Tag: V8_0_0a1~3^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f406f6a6e1587156887937c626f774a59bc671f;p=modules%2Fgeom.git patch for correct compilation on Linux --- diff --git a/src/SKETCHER/Sketcher_Utils.cxx b/src/SKETCHER/Sketcher_Utils.cxx index aeb4d9f1e..351de0b98 100644 --- a/src/SKETCHER/Sketcher_Utils.cxx +++ b/src/SKETCHER/Sketcher_Utils.cxx @@ -185,7 +185,7 @@ TopoDS_Shape Sketcher_Utils::MakeInterpolation( gp_Pnt aFirstPoint = aTmpPoints.front(); gp_Pnt aPoint = aFirstPoint; std::list::iterator aPIt = aTmpPoints.begin(); - for (++aPIt; aPIt != aTmpPoints.cend();) + for (++aPIt; aPIt != aTmpPoints.end();) { const gp_Pnt aPoint2 = *aPIt; if (!aPoint.IsEqual(aPoint2, POINT_CONFUSION_TOLERANCE)) @@ -200,7 +200,7 @@ TopoDS_Shape Sketcher_Utils::MakeInterpolation( } if (theIsClosed) { - while (--aPIt != aTmpPoints.cbegin() && + while (--aPIt != aTmpPoints.begin() && aFirstPoint.IsEqual(*aPIt, POINT_CONFUSION_TOLERANCE)) { aTmpPoints.erase(aPIt); @@ -218,7 +218,7 @@ TopoDS_Shape Sketcher_Utils::MakeInterpolation( Handle(TColgp_HArray1OfPnt) aPoints = new TColgp_HArray1OfPnt(1, aPointCount); aPIt = aTmpPoints.begin(); - for (Standard_Integer aPN = 1; aPIt != aTmpPoints.cend(); ++aPIt, ++aPN) + for (Standard_Integer aPN = 1; aPIt != aTmpPoints.end(); ++aPIt, ++aPN) { aPoints->SetValue(aPN, *aPIt); }