diff OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 1616:644c32c07306

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Sep 2015 16:00:50 +0200
parents bd1889029cbb
children 48224db51ee7
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Wed Sep 16 15:18:59 2015 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Wed Sep 16 16:00:50 2015 +0200
@@ -578,7 +578,7 @@
         StoreCreatedInstance(someInstance, call, *dicom);
       }
     }
-    catch (OrthancException& e)
+    catch (OrthancException&)
     {
       // Error: Remove the newly-created series
       
@@ -589,7 +589,7 @@
         context.GetIndex().DeleteResource(dummy, series, ResourceType_Series);
       }
 
-      throw e;
+      throw;
     }
 
     std::string series;
@@ -715,7 +715,7 @@
       }
 
       for (ModuleTags::const_iterator it = moduleTags.begin();
-           it != moduleTags.end(); it++)
+           it != moduleTags.end(); ++it)
       {
         std::string t = it->Format();
         if (siblingTags.isMember(t))
@@ -786,7 +786,6 @@
       else
       {
         throw OrthancException(ErrorCode_CreateDicomUseDataUriScheme);
-        return;
       }
     }