# HG changeset patch # User Sebastien Jodogne # Date 1747761141 -7200 # Node ID 0f9dc84976ae5a009555762061a8b39a5226b683 # Parent 42e8033618d6c50c2c16b6c1fb96f603e169b240 renamed methods to avoid clashes with Windows SDK macros diff -r 42e8033618d6 -r 0f9dc84976ae OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue May 20 19:03:11 2025 +0200 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue May 20 19:12:21 2025 +0200 @@ -4434,8 +4434,8 @@ #if HAS_ORTHANC_PLUGIN_KEY_VALUE_STORES == 1 - bool KeyValueStore::Get(std::string& value, - const std::string& key) + bool KeyValueStore::GetValue(std::string& value, + const std::string& key) { uint8_t isExisting = false; OrthancPlugins::MemoryBuffer valueBuffer; @@ -4460,7 +4460,7 @@ #if HAS_ORTHANC_PLUGIN_KEY_VALUE_STORES == 1 - void KeyValueStore::Delete(const std::string& key) + void KeyValueStore::DeleteKey(const std::string& key) { OrthancPluginErrorCode code = OrthancPluginDeleteKeyValue(OrthancPlugins::GetGlobalContext(), storeId_.c_str(), key.c_str()); diff -r 42e8033618d6 -r 0f9dc84976ae OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h --- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue May 20 19:03:11 2025 +0200 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue May 20 19:12:21 2025 +0200 @@ -1661,10 +1661,10 @@ void Store(const std::string& key, const std::string& value); - bool Get(std::string& value, - const std::string& key); + bool GetValue(std::string& value, + const std::string& key); - void Delete(const std::string& key); + void DeleteKey(const std::string& key); Iterator* CreateIterator(); };