changeset 6133:ffed14a83433 attach-custom-data

fix
author Alain Mazy <am@orthanc.team>
date Wed, 21 May 2025 23:46:37 +0200
parents 38c388f7eaed
children 48a49be02483
files OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Wed May 21 23:45:42 2025 +0200
+++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Wed May 21 23:46:37 2025 +0200
@@ -4437,16 +4437,16 @@
   bool KeyValueStore::GetValue(std::string& value,
                                const std::string& key)
   {
-    uint8_t isExisting = false;
+    uint8_t found = false;
     OrthancPlugins::MemoryBuffer valueBuffer;
-    OrthancPluginErrorCode code = OrthancPluginGetKeyValue(OrthancPlugins::GetGlobalContext(), &isExisting,
+    OrthancPluginErrorCode code = OrthancPluginGetKeyValue(OrthancPlugins::GetGlobalContext(), &found,
                                                            *valueBuffer, storeId_.c_str(), key.c_str());
 
     if (code != OrthancPluginErrorCode_Success)
     {
       ORTHANC_PLUGINS_THROW_PLUGIN_ERROR_CODE(code);
     }
-    else if (isExisting)
+    else if (found)
     {
       valueBuffer.ToString(value);
       return true;
@@ -4499,17 +4499,17 @@
   bool Queue::PopInternal(std::string& value,
                           OrthancPluginQueueOrigin origin)
   {
-    uint8_t isExisting = false;
+    uint8_t found = false;
     OrthancPlugins::MemoryBuffer valueBuffer;
 
-    OrthancPluginErrorCode code = OrthancPluginDequeueValue(OrthancPlugins::GetGlobalContext(), &isExisting,
+    OrthancPluginErrorCode code = OrthancPluginDequeueValue(OrthancPlugins::GetGlobalContext(), &found,
                                                             *valueBuffer, queueId_.c_str(), origin);
 
     if (code != OrthancPluginErrorCode_Success)
     {
       ORTHANC_PLUGINS_THROW_PLUGIN_ERROR_CODE(code);
     }
-    else if (isExisting)
+    else if (found)
     {
       valueBuffer.ToString(value);
       return true;