diff OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 4223:3d6f14a05db1

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Sep 2020 16:25:48 +0200
parents 318c16cfccab
children 0ae2ca210077
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Wed Sep 30 15:53:17 2020 +0200
+++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Wed Sep 30 16:25:48 2020 +0200
@@ -730,7 +730,7 @@
       boost::regex                      regex_;
 
     public:
-      explicit ChunkedRestCallback(_OrthancPluginChunkedRestCallback parameters) :
+      explicit ChunkedRestCallback(const _OrthancPluginChunkedRestCallback& parameters) :
         parameters_(parameters),
         regex_(parameters.pathRegularExpression)
       {
@@ -759,7 +759,7 @@
         void*    handler_;
 
       public:
-        Handler(_OrthancPluginRegisterStorageCommitmentScpCallback  parameters,
+        Handler(const _OrthancPluginRegisterStorageCommitmentScpCallback& parameters,
                 void* handler) :
           parameters_(parameters),
           handler_(handler)
@@ -800,7 +800,7 @@
       _OrthancPluginRegisterStorageCommitmentScpCallback  parameters_;
 
     public:
-      explicit StorageCommitmentScp(_OrthancPluginRegisterStorageCommitmentScpCallback parameters) :
+      explicit StorageCommitmentScp(const _OrthancPluginRegisterStorageCommitmentScpCallback& parameters) :
         parameters_(parameters)
       {
       }