diff OrthancServer/Sources/LuaScripting.cpp @ 4204:318c16cfccab

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 16:18:01 +0200
parents 05b8fd21089c
children 9dc0e42f868b
line wrap: on
line diff
--- a/OrthancServer/Sources/LuaScripting.cpp	Thu Sep 17 15:01:31 2020 +0200
+++ b/OrthancServer/Sources/LuaScripting.cpp	Thu Sep 17 16:18:01 2020 +0200
@@ -74,7 +74,7 @@
       instance.GetOrigin().Format(origin_);
     }
 
-    virtual void Apply(LuaScripting& that)
+    virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
     {
       static const char* NAME = "OnStoredInstance";
 
@@ -103,12 +103,12 @@
     std::string    command_;
 
   public:
-    ExecuteEvent(const std::string& command) :
+    explicit ExecuteEvent(const std::string& command) :
       command_(command)
     {
     }
 
-    virtual void Apply(LuaScripting& that)
+    virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
     {
       LuaScripting::Lock lock(that);
 
@@ -127,12 +127,12 @@
     ServerIndexChange  change_;
 
   public:
-    StableResourceEvent(const ServerIndexChange& change) :
-    change_(change)
+    explicit StableResourceEvent(const ServerIndexChange& change) :
+      change_(change)
     {
     }
 
-    virtual void Apply(LuaScripting& that)
+    virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
     {
       const char* name;
 
@@ -223,7 +223,7 @@
     {
     }
 
-    virtual void Apply(LuaScripting& that)
+    virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
     {
       std::string functionName;
       
@@ -273,7 +273,7 @@
     {
     }
 
-    virtual void Apply(LuaScripting& that)
+    virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
     {
       std::string functionName;
       
@@ -327,7 +327,7 @@
     {
     }
 
-    virtual void Apply(LuaScripting& that)
+    virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
     {
       std::string functionName;