Mercurial > hg > orthanc-indexer
changeset 21:1185a9f8c6c9
fix deprecated calls
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Fri, 22 Mar 2024 15:20:22 +0100 |
| parents | ca40236fda57 |
| children | 5a24f4147d67 |
| files | Sources/Plugin.cpp |
| diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <boost/thread.hpp> #include <stack> +#define ORTHANC_PLUGIN_NAME "indexer" + static std::list<std::string> 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; }
