Mercurial > hg > orthanc-databases
diff SQLite/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/SQLite/Plugins/IndexPlugin.cpp Fri Mar 22 14:42:36 2024 +0100 +++ b/SQLite/Plugins/IndexPlugin.cpp Fri Mar 22 15:03:26 2024 +0100 @@ -27,6 +27,8 @@ #include <google/protobuf/any.h> +#define ORTHANC_PLUGIN_NAME "sqlite-index" + extern "C" { @@ -34,7 +36,7 @@ { GOOGLE_PROTOBUF_VERIFY_VERSION; - if (!OrthancDatabases::InitializePlugin(context, "SQLite", true)) + if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "SQLite", true)) { return -1; } @@ -94,7 +96,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "sqlite-index"; + return ORTHANC_PLUGIN_NAME; }