changeset 475:b7a495d2b39e

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Oct 2020 18:44:18 +0200
parents 907aeac6ce89
children 4bfe89488bc1 8229c283eefb
files Plugin/DicomWebClient.cpp Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/DicomWebClient.cpp	Sat Oct 17 18:43:45 2020 +0200
+++ b/Plugin/DicomWebClient.cpp	Mon Oct 19 18:44:18 2020 +0200
@@ -246,7 +246,7 @@
     }
   }
 
-  virtual OrthancPluginJobStepStatus Step()
+  virtual OrthancPluginJobStepStatus Step() ORTHANC_OVERRIDE
   {
     if (factory_ == NULL)
     {
@@ -280,7 +280,7 @@
     }
   }
 
-  virtual void Stop(OrthancPluginJobStopReason reason)
+  virtual void Stop(OrthancPluginJobStopReason reason) ORTHANC_OVERRIDE
   {
     if (factory_ == NULL)
     {
@@ -307,7 +307,7 @@
     }
   }
 
-  virtual void Reset()
+  virtual void Reset() ORTHANC_OVERRIDE
   {
     boost::mutex::scoped_lock lock(mutex_);
 
@@ -636,7 +636,7 @@
     {
     }
 
-    virtual bool ReadNextChunk(std::string& chunk)
+    virtual bool ReadNextChunk(std::string& chunk) ORTHANC_OVERRIDE
     {
       if (done_)
       {
--- a/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h	Sat Oct 17 18:43:45 2020 +0200
+++ b/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h	Mon Oct 19 18:44:18 2020 +0200
@@ -779,7 +779,7 @@
     void UpdateProgress(float progress);
     
   public:
-    OrthancJob(const std::string& jobType);
+    explicit OrthancJob(const std::string& jobType);
     
     virtual ~OrthancJob()
     {