diff UnitTestsSources/MultiThreadingTests.cpp @ 1304:7b6925b0890d

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Feb 2015 17:03:17 +0100
parents 6e7e5ed91c2d
children ac4efabeb80c
line wrap: on
line diff
--- a/UnitTestsSources/MultiThreadingTests.cpp	Tue Feb 10 16:47:24 2015 +0100
+++ b/UnitTestsSources/MultiThreadingTests.cpp	Tue Feb 10 17:03:17 2015 +0100
@@ -291,7 +291,7 @@
                      const ListOfStrings& inputs)
   {
     for (ListOfStrings::const_iterator 
-           it = inputs.begin(); it != inputs.end(); it++)
+           it = inputs.begin(); it != inputs.end(); ++it)
     {
       int a = boost::lexical_cast<int>(*it);
       int b = factor_ * a;
@@ -318,8 +318,10 @@
   {
     ListOfStrings l;
     s->GetListOfJobs(l);
-    for (ListOfStrings::iterator i = l.begin(); i != l.end(); i++)
-      printf(">> %s: %0.1f\n", i->c_str(), 100.0f * s->GetProgress(*i));
+    for (ListOfStrings::iterator it = l.begin(); it != l.end(); ++it)
+    {
+      printf(">> %s: %0.1f\n", it->c_str(), 100.0f * s->GetProgress(*it));
+    }
     Toolbox::USleep(10000);
   }
 }