# HG changeset patch # User Alain Mazy # Date 1747863997 -7200 # Node ID ffed14a83433ac2917929b69d23200d0326a6d8c # Parent 38c388f7eaed06886a3988b572b318ed8a11f604 fix diff -r 38c388f7eaed -r ffed14a83433 OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- 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;