diff Core/Compression/HierarchicalZipWriter.cpp @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents bdd72233b105
children 2d0a347e8cfc
line wrap: on
line diff
--- a/Core/Compression/HierarchicalZipWriter.cpp	Wed Oct 30 11:56:28 2013 +0100
+++ b/Core/Compression/HierarchicalZipWriter.cpp	Mon Nov 04 11:19:31 2013 +0100
@@ -81,12 +81,12 @@
     std::string result;
 
     Stack::const_iterator it = stack_.begin();
-    it++;  // Skip the root node (to avoid absolute paths)
+    ++it;  // Skip the root node (to avoid absolute paths)
 
     while (it != stack_.end())
     {
       result += (*it)->name_ + "/";
-      it++;
+      ++it;
     }
 
     return result;
@@ -118,7 +118,7 @@
 
   HierarchicalZipWriter::Index::~Index()
   {
-    for (Stack::iterator it = stack_.begin(); it != stack_.end(); it++)
+    for (Stack::iterator it = stack_.begin(); it != stack_.end(); ++it)
     {
       delete *it;
     }