]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
compilation errors on WIN hydro/imps_2015
authorisn <isn@opencascade.com>
Tue, 30 Aug 2016 14:39:34 +0000 (17:39 +0300)
committerisn <isn@opencascade.com>
Tue, 30 Aug 2016 14:39:34 +0000 (17:39 +0300)
src/CurveCreator/CurveCreator_Widget.cxx

index 64a884e8a78c7552d6c2e6db5242e9fa51f590cf..812c71134da2582586eafc81fba44bf7ca35507b 100644 (file)
@@ -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<int> sections(nbPoints);
+  std::vector<int> iPoints(nbPoints);
+  std::vector<int> nbPtsSection(nbPoints);
+  std::vector<double> x(nbPoints);
+  std::vector<double> 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;