From: isn Date: Tue, 30 Aug 2016 14:39:34 +0000 (+0300) Subject: compilation errors on WIN X-Git-Tag: V8_2_0a1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fhydro%2Fimps_2015;p=modules%2Fgeom.git compilation errors on WIN --- diff --git a/src/CurveCreator/CurveCreator_Widget.cxx b/src/CurveCreator/CurveCreator_Widget.cxx index 64a884e8a..812c71134 100644 --- a/src/CurveCreator/CurveCreator_Widget.cxx +++ b/src/CurveCreator/CurveCreator_Widget.cxx @@ -1006,11 +1006,11 @@ void CurveCreator_Widget::onBringTogether() CurveCreator_ICurve::SectionToPointList::const_iterator anIt = myLocalPoints.begin(), aLast = myLocalPoints.end(); - int sections[nbPoints]; - int iPoints[nbPoints]; - int nbPtsSection[nbPoints]; - double x[nbPoints]; - double y[nbPoints]; + std::vector sections(nbPoints); + std::vector iPoints(nbPoints); + std::vector nbPtsSection(nbPoints); + std::vector x(nbPoints); + std::vector y(nbPoints); int i = 0; for ( ; anIt != aLast; anIt++, i++ ) { @@ -1018,7 +1018,7 @@ void CurveCreator_Widget::onBringTogether() sections[i] = aSPoint.first; iPoints[i] = aSPoint.second; nbPtsSection[i] = myCurve->getNbPoints(sections[i]); - if ((iPoints[i] != 0) and (iPoints[i] != nbPtsSection[i]-1)) + if ((iPoints[i] != 0) && (iPoints[i] != nbPtsSection[i]-1)) { MESSAGE("a point is not on a section extremity, nothing done"); return;