# HG changeset patch # User Sebastien Jodogne # Date 1711117222 -3600 # Node ID 1185a9f8c6c93516a839b4533a900d9cc5e4755f # Parent ca40236fda57b7dff5457dad06bb59bcb7dd1eb1 fix deprecated calls diff -r ca40236fda57 -r 1185a9f8c6c9 Sources/Plugin.cpp --- a/Sources/Plugin.cpp Fri Mar 22 15:19:11 2024 +0100 +++ b/Sources/Plugin.cpp Fri Mar 22 15:20:22 2024 +0100 @@ -32,6 +32,8 @@ #include #include +#define ORTHANC_PLUGIN_NAME "indexer" + static std::list folders_; static IndexerDatabase database_; @@ -463,7 +465,7 @@ return -1; } - OrthancPluginSetDescription(context, "Synchronize Orthanc with directories containing DICOM files."); + OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Synchronize Orthanc with directories containing DICOM files."); OrthancPlugins::OrthancConfiguration configuration; @@ -545,7 +547,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "indexer"; + return ORTHANC_PLUGIN_NAME; }