diff Applications/StoneWebViewer/Plugin/Plugin.cpp @ 2119:11bc8a304038

fix deprecated calls
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 16 Mar 2024 12:04:50 +0100
parents 7926c9a09757
children 4cc9e4a54a89
line wrap: on
line diff
--- a/Applications/StoneWebViewer/Plugin/Plugin.cpp	Sat Mar 16 10:48:59 2024 +0100
+++ b/Applications/StoneWebViewer/Plugin/Plugin.cpp	Sat Mar 16 12:04:50 2024 +0100
@@ -279,12 +279,12 @@
 
     try
     {
-      OrthancPluginSetDescription(OrthancPlugins::GetGlobalContext(), "Stone Web viewer");
+      OrthancPlugins::SetDescription(PLUGIN_NAME, "Stone Web viewer");
 
       std::string explorer;
       Orthanc::EmbeddedResources::GetFileResource(
         explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER);
-      OrthancPluginExtendOrthancExplorer(OrthancPlugins::GetGlobalContext(), explorer.c_str());
+      OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer.c_str());
       
       OrthancPlugins::RegisterRestCallback<ServeConfiguration>
         (STONE_WEB_VIEWER_ROOT + "/configuration.json", true);