diff Odbc/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/Odbc/Plugins/StoragePlugin.cpp	Fri Mar 22 14:42:36 2024 +0100
+++ b/Odbc/Plugins/StoragePlugin.cpp	Fri Mar 22 15:03:26 2024 +0100
@@ -29,6 +29,8 @@
 
 #include <Logging.h>
 
+#define ORTHANC_PLUGIN_NAME "odbc-storage"
+
 
 namespace OrthancDatabases
 {
@@ -113,7 +115,7 @@
   
   ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
   {
-    if (!OrthancDatabases::InitializePlugin(context, "ODBC", false))
+    if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "ODBC", false))
     {
       return -1;
     }
@@ -191,7 +193,7 @@
 
   ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
   {
-    return "odbc-storage";
+    return ORTHANC_PLUGIN_NAME;
   }