diff Core/DicomFormat/DicomMap.cpp @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents c2be0a0e049e
children 3bdb5db8e839 2d0a347e8cfc
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.cpp	Wed Oct 30 11:56:28 2013 +0100
+++ b/Core/DicomFormat/DicomMap.cpp	Mon Nov 04 11:19:31 2013 +0100
@@ -128,7 +128,7 @@
 
   void DicomMap::Clear()
   {
-    for (Map::iterator it = map_.begin(); it != map_.end(); it++)
+    for (Map::iterator it = map_.begin(); it != map_.end(); ++it)
     {
       delete it->second;
     }
@@ -180,7 +180,7 @@
   {
     std::auto_ptr<DicomMap> result(new DicomMap);
 
-    for (Map::const_iterator it = map_.begin(); it != map_.end(); it++)
+    for (Map::const_iterator it = map_.begin(); it != map_.end(); ++it)
     {
       result->map_.insert(std::make_pair(it->first, it->second->Clone()));
     }