diff PostgreSQL/Plugins/IndexPlugin.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/IndexPlugin.cpp	Fri Mar 22 14:42:36 2024 +0100
+++ b/PostgreSQL/Plugins/IndexPlugin.cpp	Fri Mar 22 15:03:26 2024 +0100
@@ -28,6 +28,8 @@
 
 #include <google/protobuf/any.h>
 
+#define ORTHANC_PLUGIN_NAME "postgresql-index"
+
 
 extern "C"
 {
@@ -35,7 +37,7 @@
   {
     GOOGLE_PROTOBUF_VERIFY_VERSION;
 
-    if (!OrthancDatabases::InitializePlugin(context, "PostgreSQL", true))
+    if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "PostgreSQL", true))
     {
       return -1;
     }
@@ -97,7 +99,7 @@
 
   ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
   {
-    return "postgresql-index";
+    return ORTHANC_PLUGIN_NAME;
   }