Mercurial > hg > orthanc-databases
diff MySQL/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/MySQL/Plugins/StoragePlugin.cpp Fri Mar 22 14:42:36 2024 +0100 +++ b/MySQL/Plugins/StoragePlugin.cpp Fri Mar 22 15:03:26 2024 +0100 @@ -28,12 +28,14 @@ #include <Logging.h> #include <Toolbox.h> +#define ORTHANC_PLUGIN_NAME "mysql-storage" + extern "C" { ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) { - if (!OrthancDatabases::InitializePlugin(context, "MySQL", false)) + if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "MySQL", false)) { return -1; } @@ -95,7 +97,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "mysql-storage"; + return ORTHANC_PLUGIN_NAME; }