Linux compilation fixed 80/17180/1
Cedric Delamarre [Tue, 8 Sep 2015 17:45:50 +0000 (19:45 +0200)]
Change-Id: I9f1128e56f91b146f3d1dfaed140739a424917f3

scilab/modules/ast/includes/analysis/AnalysisVisitor.hxx

index a9c13d6..06c7b56 100644 (file)
@@ -621,11 +621,11 @@ private:
     void visit(ast::SeqExp & e)
     {
         logger.log(L"SeqExp", e.getLocation());
-        ast::exps_t::const_iterator i = e.getExps().begin();
-        ast::exps_t::const_iterator end = e.getExps().end();
-        for (; i != end; ++i)
+        ast::exps_t::iterator i = e.getExps().begin();
+        ast::exps_t::iterator itEnd = e.getExps().end();
+        for (; i != itEnd; ++i)
         {
-            ast::Exp * exp = *i;
+            ast::Exp* exp = *i;
             if (exp->isCallExp())
             {
                 visit(*static_cast<ast::CallExp *>(exp), /* LHS */ 0);
@@ -650,12 +650,12 @@ private:
             }
         }
 
-        if (i != end)
+        if (i != itEnd)
         {
             ++i;
-            if (i != end)
+            if (i != itEnd)
             {
-                e.getExps().erase(i, end);
+                e.getExps().erase(i, itEnd);
             }
         }
     }