Mercurial > hg > orthanc-databases
diff Odbc/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 | 694d1b551cbe |
children | 54d518dcd74a |
line wrap: on
line diff
--- a/Odbc/Plugins/IndexPlugin.cpp Fri Mar 22 14:42:36 2024 +0100 +++ b/Odbc/Plugins/IndexPlugin.cpp Fri Mar 22 15:03:26 2024 +0100 @@ -28,6 +28,8 @@ #include <Logging.h> +#define ORTHANC_PLUGIN_NAME "odbc-index" + #if defined(_WIN32) # ifdef _MSC_VER @@ -59,7 +61,7 @@ { GOOGLE_PROTOBUF_VERIFY_VERSION; - if (!OrthancDatabases::InitializePlugin(context, "ODBC", true)) + if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "ODBC", true)) { return -1; } @@ -141,7 +143,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "odbc-index"; + return ORTHANC_PLUGIN_NAME; }