diff PostgreSQL/Plugins/PostgreSQLStorageArea.h @ 186:6fe74f9a516e

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Dec 2020 15:05:19 +0100
parents 0b3e9ee53c46
children 3236894320d6
line wrap: on
line diff
--- a/PostgreSQL/Plugins/PostgreSQLStorageArea.h	Wed Dec 16 13:59:17 2020 +0100
+++ b/PostgreSQL/Plugins/PostgreSQLStorageArea.h	Wed Dec 16 15:05:19 2020 +0100
@@ -35,8 +35,8 @@
       PostgreSQLStorageArea&  that_;
 
     public:
-      Factory(PostgreSQLStorageArea& that) :
-      that_(that)
+      explicit Factory(PostgreSQLStorageArea& that) :
+        that_(that)
       {
       }
 
@@ -57,14 +57,13 @@
       }
     };
 
-    OrthancPluginContext*  context_;
     PostgreSQLParameters   parameters_;
     bool                   clearAll_;
 
     IDatabase* OpenInternal();
 
   public:
-    PostgreSQLStorageArea(const PostgreSQLParameters& parameters);
+    explicit PostgreSQLStorageArea(const PostgreSQLParameters& parameters);
 
     void SetClearAll(bool clear)
     {