diff Common/IStorage.h @ 153:6dd8bb916573

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Jun 2024 14:29:22 +0200
parents 3c7e0374f28e
children
line wrap: on
line diff
--- a/Common/IStorage.h	Fri Jun 21 11:22:57 2024 +0200
+++ b/Common/IStorage.h	Fri Jun 21 14:29:22 2024 +0200
@@ -27,7 +27,7 @@
 class StoragePluginException : public std::runtime_error
 {
 public:
-  StoragePluginException(const std::string& what)
+  explicit StoragePluginException(const std::string& what)
     : std::runtime_error(what)
   {
   }
@@ -44,7 +44,7 @@
 //  IStorage* CreateStorage(const OrthancPlugins::OrthancConfiguration& orthancConfig);
 //};
 
-class IStorage
+class IStorage : public boost::noncopyable
 {
 public:
   class IWriter
@@ -75,6 +75,10 @@
     nameForLogs_(nameForLogs)
   {}
 
+  virtual ~IStorage()
+  {
+  }
+
   virtual void SetRootPath(const std::string& rootPath) = 0;
 
   virtual IWriter* GetWriterForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) = 0;