# HG changeset patch # User Sebastien Jodogne # Date 1711118793 -3600 # Node ID 05bf4ccfdca9e5360d136a4ff2691c3d0fe4080b # Parent 0a1ad7492050cc7d53de969b203962a1b2975bf5 fix deprecated calls diff -r 0a1ad7492050 -r 05bf4ccfdca9 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Fri Mar 22 15:45:07 2024 +0100 +++ b/Plugin/Plugin.cpp Fri Mar 22 15:46:33 2024 +0100 @@ -37,6 +37,8 @@ #include #include +#define ORTHANC_PLUGIN_NAME "web-viewer" + /** * We force the redefinition of the "ORTHANC_PLUGINS_API" macro, that @@ -418,7 +420,7 @@ return -1; } - OrthancPluginSetDescription(context, "Provides a Web viewer of DICOM series within Orthanc."); + OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Provides a Web viewer of DICOM series within Orthanc."); /* By default, use half of the available processing cores for the decoding of DICOM images */ @@ -535,7 +537,7 @@ /* Extend the default Orthanc Explorer with custom JavaScript */ std::string explorer; Orthanc::EmbeddedResources::GetFileResource(explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); - OrthancPluginExtendOrthancExplorer(context, explorer.c_str()); + OrthancPlugins::ExtendOrthancExplorer(ORTHANC_PLUGIN_NAME, explorer); return 0; } @@ -557,7 +559,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "web-viewer"; + return ORTHANC_PLUGIN_NAME; }