Coverity #1321193 fixed 60/18260/1
Dhruv Khattar [Fri, 17 Jun 2016 14:50:26 +0000 (19:50 +0530)]
Change-Id: Idc2d50768e3562e81f23b5f3f9b412ac4fe2a7c9

scilab/modules/ast/src/cpp/system_env/configvariable.cpp

index bd213c7..27da341 100644 (file)
@@ -686,7 +686,7 @@ types::Cell* ConfigVariable::getAllThreads(void)
     types::Cell *pcResult = new types::Cell(iSize, 1);
     std::list<types::ThreadId *>::iterator it;
 
-    for (auto thread : ConfigVariable::m_threadList)
+    for (it = ConfigVariable::m_threadList.begin() ; it != ConfigVariable::m_threadList.end() ; ++it)
     {
         pcResult->set(i++, *it);
     }