changeset 62:eedd082355f9

fix for compatibility with simplified OrthancPluginCppWrapper
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2018 08:57:16 +0100
parents 412e30336847
children ffaa97a2c83a
files Framework/Plugins/PluginInitialization.cpp MySQL/Plugins/IndexPlugin.cpp MySQL/Plugins/StoragePlugin.cpp PostgreSQL/Plugins/IndexPlugin.cpp PostgreSQL/Plugins/StoragePlugin.cpp SQLite/Plugins/IndexPlugin.cpp
diffstat 6 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/PluginInitialization.cpp	Mon Nov 19 15:06:08 2018 +0100
+++ b/Framework/Plugins/PluginInitialization.cpp	Wed Dec 05 08:57:16 2018 +0100
@@ -24,6 +24,8 @@
 #include "../Common/ImplicitTransaction.h"
 
 #include <Core/Logging.h>
+#include <Plugins/Samples/Common/OrthancPluginCppWrapper.h>
+
 
 namespace OrthancDatabases
 {
@@ -43,6 +45,7 @@
                         bool isIndex)
   {
     Orthanc::Logging::Initialize(context);
+    OrthancPlugins::SetGlobalContext(context);
     ImplicitTransaction::SetErrorOnDoubleExecution(false);
 
     assert(DisplayPerformanceWarning(dbms, isIndex));
--- a/MySQL/Plugins/IndexPlugin.cpp	Mon Nov 19 15:06:08 2018 +0100
+++ b/MySQL/Plugins/IndexPlugin.cpp	Wed Dec 05 08:57:16 2018 +0100
@@ -42,7 +42,7 @@
     Orthanc::Toolbox::InitializeOpenSsl();
     Orthanc::HttpClient::GlobalInitialize();
 
-    OrthancPlugins::OrthancConfiguration configuration(context);
+    OrthancPlugins::OrthancConfiguration configuration;
 
     if (!configuration.IsSection("MySQL"))
     {
--- a/MySQL/Plugins/StoragePlugin.cpp	Mon Nov 19 15:06:08 2018 +0100
+++ b/MySQL/Plugins/StoragePlugin.cpp	Wed Dec 05 08:57:16 2018 +0100
@@ -40,7 +40,7 @@
     Orthanc::Toolbox::InitializeOpenSsl();
     Orthanc::HttpClient::GlobalInitialize();
 
-    OrthancPlugins::OrthancConfiguration configuration(context);
+    OrthancPlugins::OrthancConfiguration configuration;
 
     if (!configuration.IsSection("MySQL"))
     {
--- a/PostgreSQL/Plugins/IndexPlugin.cpp	Mon Nov 19 15:06:08 2018 +0100
+++ b/PostgreSQL/Plugins/IndexPlugin.cpp	Wed Dec 05 08:57:16 2018 +0100
@@ -36,7 +36,7 @@
       return -1;
     }
 
-    OrthancPlugins::OrthancConfiguration configuration(context);
+    OrthancPlugins::OrthancConfiguration configuration;
 
     if (!configuration.IsSection("PostgreSQL"))
     {
--- a/PostgreSQL/Plugins/StoragePlugin.cpp	Mon Nov 19 15:06:08 2018 +0100
+++ b/PostgreSQL/Plugins/StoragePlugin.cpp	Wed Dec 05 08:57:16 2018 +0100
@@ -33,7 +33,7 @@
       return -1;
     }
 
-    OrthancPlugins::OrthancConfiguration configuration(context);
+    OrthancPlugins::OrthancConfiguration configuration;
 
     if (!configuration.IsSection("PostgreSQL"))
     {
--- a/SQLite/Plugins/IndexPlugin.cpp	Mon Nov 19 15:06:08 2018 +0100
+++ b/SQLite/Plugins/IndexPlugin.cpp	Wed Dec 05 08:57:16 2018 +0100
@@ -37,7 +37,7 @@
     }
 
 #if 0
-    OrthancPlugins::OrthancConfiguration configuration(context);
+    OrthancPlugins::OrthancConfiguration configuration;
 
     if (!configuration.IsSection("SQLite"))
     {