# HG changeset patch # User Sebastien Jodogne # Date 1711119757 -3600 # Node ID cd698247b02932a8d67504c3cd11cc2d36e9514f # Parent 42a3fcbbc78d6b1437d620bb04b5d29397dda9fc fix deprecated calls diff -r 42a3fcbbc78d -r cd698247b029 OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp --- a/OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp Fri Mar 22 13:45:02 2024 +0100 +++ b/OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp Fri Mar 22 16:02:37 2024 +0100 @@ -30,7 +30,7 @@ #include #include - +#define ORTHANC_PLUGIN_NAME "sanitizer" OrthancPluginReceivedInstanceAction ReceivedInstanceCallback(OrthancPluginMemoryBuffer64* modifiedDicomBuffer, @@ -71,7 +71,7 @@ } OrthancPlugins::LogWarning("Sanitizer plugin is initializing"); - OrthancPluginSetDescription(c, "Sample plugin to sanitize incoming DICOM instances."); + OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Sample plugin to sanitize incoming DICOM instances."); OrthancPluginRegisterReceivedInstanceCallback(c, ReceivedInstanceCallback); @@ -88,7 +88,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "sanitizer"; + return ORTHANC_PLUGIN_NAME; } diff -r 42a3fcbbc78d -r cd698247b029 OrthancServer/Plugins/Samples/StorageCommitmentScp/Plugin.cpp --- a/OrthancServer/Plugins/Samples/StorageCommitmentScp/Plugin.cpp Fri Mar 22 13:45:02 2024 +0100 +++ b/OrthancServer/Plugins/Samples/StorageCommitmentScp/Plugin.cpp Fri Mar 22 16:02:37 2024 +0100 @@ -24,6 +24,8 @@ #include +#define ORTHANC_PLUGIN_NAME "storage-commitment-scp" + class StorageCommitmentSample : public OrthancPlugins::IStorageCommitmentScpHandler { @@ -86,7 +88,7 @@ return -1; } - OrthancPluginSetDescription(c, "Sample storage commitment SCP plugin."); + OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Sample storage commitment SCP plugin."); OrthancPluginRegisterStorageCommitmentScpCallback( c, StorageCommitmentScp, @@ -104,7 +106,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "storage-commitment-scp"; + return ORTHANC_PLUGIN_NAME; }