# HG changeset patch # User Sebastien Jodogne # Date 1711120182 -3600 # Node ID 4cc9e4a54a8937a9f567a3dc9254001d183ad8e7 # Parent 11bc8a30403836386810d6c0f86c69e93d8bd770 simplification diff -r 11bc8a304038 -r 4cc9e4a54a89 Applications/Samples/RtViewerPlugin/Plugin.cpp --- a/Applications/Samples/RtViewerPlugin/Plugin.cpp Sat Mar 16 12:04:50 2024 +0100 +++ b/Applications/Samples/RtViewerPlugin/Plugin.cpp Fri Mar 22 16:09:42 2024 +0100 @@ -133,7 +133,7 @@ std::string explorer; Orthanc::EmbeddedResources::GetFileResource( explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); - OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer.c_str()); + OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer); // RtViewer files below. // --------------------- diff -r 11bc8a304038 -r 4cc9e4a54a89 Applications/StoneWebViewer/Plugin/Plugin.cpp --- a/Applications/StoneWebViewer/Plugin/Plugin.cpp Sat Mar 16 12:04:50 2024 +0100 +++ b/Applications/StoneWebViewer/Plugin/Plugin.cpp Fri Mar 22 16:09:42 2024 +0100 @@ -284,7 +284,7 @@ std::string explorer; Orthanc::EmbeddedResources::GetFileResource( explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); - OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer.c_str()); + OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer); OrthancPlugins::RegisterRestCallback (STONE_WEB_VIEWER_ROOT + "/configuration.json", true);