diff OrthancServer/ServerIndex.cpp @ 1304:7b6925b0890d

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Feb 2015 17:03:17 +0100
parents 919dfb2fb3fe
children 536515f87cb4
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Feb 10 16:47:24 2015 +0100
+++ b/OrthancServer/ServerIndex.cpp	Tue Feb 10 17:03:17 2015 +0100
@@ -139,7 +139,7 @@
       {
         for (std::list<ServerIndexChange>::const_iterator 
                it = pendingChanges_.begin(); 
-             it != pendingChanges_.end(); it++)
+             it != pendingChanges_.end(); ++it)
         {
           context_.SignalChange(*it);
         }
@@ -1077,7 +1077,7 @@
 
     target = Json::arrayValue;
     for (std::list<std::string>::const_iterator
-           it = lst.begin(); it != lst.end(); it++)
+           it = lst.begin(); it != lst.end(); ++it)
     {
       target.append(*it);
     }
@@ -1093,7 +1093,7 @@
   {
     Json::Value items = Json::arrayValue;
     for (typename std::list<T>::const_iterator
-           it = log.begin(); it != log.end(); it++)
+           it = log.begin(); it != log.end(); ++it)
     {
       Json::Value item;
       it->Format(item);
@@ -2006,7 +2006,7 @@
     db_.ListAvailableMetadata(metadata, id);
 
     for (std::list<MetadataType>::const_iterator
-           it = metadata.begin(); it != metadata.end(); it++)
+           it = metadata.begin(); it != metadata.end(); ++it)
     {
       std::string key = EnumerationToString(*it);