diff PostgreSQL/Plugins/StoragePlugin.cpp @ 492:af6998ed73dd

fix deprecated calls
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Mar 2024 15:03:26 +0100
parents ecd0b719cff5
children 54d518dcd74a
line wrap: on
line diff
--- a/PostgreSQL/Plugins/StoragePlugin.cpp	Fri Mar 22 14:42:36 2024 +0100
+++ b/PostgreSQL/Plugins/StoragePlugin.cpp	Fri Mar 22 15:03:26 2024 +0100
@@ -26,11 +26,14 @@
 #include <Logging.h>
 #include <Toolbox.h>
 
+#define ORTHANC_PLUGIN_NAME "postgresql-storage"
+
+
 extern "C"
 {
   ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
   {
-    if (!OrthancDatabases::InitializePlugin(context, "PostgreSQL", false))
+    if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "PostgreSQL", false))
     {
       return -1;
     }
@@ -88,7 +91,7 @@
 
   ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
   {
-    return "postgresql-storage";
+    return ORTHANC_PLUGIN_NAME;
   }