changeset 80:b3787f4aa16a

fix
author Alain Mazy <am@osimis.io>
date Sat, 15 Oct 2022 07:49:30 +0200
parents 16514270d9ca
children e29987d80ecf
files Azure/AzureBlobStoragePlugin.cpp Azure/AzureBlobStoragePlugin.h Google/GoogleStoragePlugin.cpp Google/GoogleStoragePlugin.h
diffstat 4 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Azure/AzureBlobStoragePlugin.cpp	Fri Oct 14 16:22:26 2022 +0200
+++ b/Azure/AzureBlobStoragePlugin.cpp	Sat Oct 15 07:49:30 2022 +0200
@@ -29,7 +29,6 @@
 
 // Create aliases to make the code easier to read.
 namespace as = azure::storage;
-static const char* const PLUGIN_SECTION = "AzureBlobStorage";
 
 class AzureBlobStoragePlugin : public BaseStorage
 {
@@ -51,7 +50,6 @@
   virtual IWriter* GetWriterForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
   virtual IReader* GetReaderForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
   virtual void DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
-  virtual const char* GetConfigurationSectionName() {return PLUGIN_SECTION;};
 };
 
 
--- a/Azure/AzureBlobStoragePlugin.h	Fri Oct 14 16:22:26 2022 +0200
+++ b/Azure/AzureBlobStoragePlugin.h	Sat Oct 15 07:49:30 2022 +0200
@@ -26,4 +26,5 @@
 public:
   static const char* GetStoragePluginName();
   static IStorage* CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig);
+  static const char* GetConfigurationSectionName() {return "AzureBlobStorage";}
 };
--- a/Google/GoogleStoragePlugin.cpp	Fri Oct 14 16:22:26 2022 +0200
+++ b/Google/GoogleStoragePlugin.cpp	Sat Oct 15 07:49:30 2022 +0200
@@ -23,7 +23,6 @@
 
 // Create aliases to make the code easier to read.
 namespace gcs = google::cloud::storage;
-static const char* const PLUGIN_SECTION = "GoogleCloudStorage";
 
 
 class GoogleStoragePlugin : public BaseStorage
@@ -46,7 +45,6 @@
   virtual IWriter* GetWriterForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
   virtual IReader* GetReaderForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
   virtual bool DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled);
-  virtual const char* GetConfigurationSectionName() {return PLUGIN_SECTION;}
 };
 
 
--- a/Google/GoogleStoragePlugin.h	Fri Oct 14 16:22:26 2022 +0200
+++ b/Google/GoogleStoragePlugin.h	Sat Oct 15 07:49:30 2022 +0200
@@ -28,4 +28,5 @@
 public:
   static const char* GetStoragePluginName();
   static IStorage* CreateStorage(const std::string& nameForLogs, const OrthancPlugins::OrthancConfiguration& orthancConfig);
+  static const char* GetConfigurationSectionName() {return "GoogleCloudStorage";}
 };