# HG changeset patch # User Alain Mazy # Date 1666012653 -7200 # Node ID f30b9acf80f0431b7b175b984d28f5938b1c9c0e # Parent e29987d80ecf1341d7963f89a021187ed1d38ce7 fix diff -r e29987d80ecf -r f30b9acf80f0 Google/GoogleStoragePlugin.cpp --- a/Google/GoogleStoragePlugin.cpp Mon Oct 17 13:38:32 2022 +0200 +++ b/Google/GoogleStoragePlugin.cpp Mon Oct 17 15:17:33 2022 +0200 @@ -44,7 +44,7 @@ virtual IWriter* GetWriterForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); virtual IReader* GetReaderForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); - virtual bool DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); + virtual void DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); }; @@ -313,7 +313,7 @@ return new Reader(bucketName_, paths, mainClient_); } -bool GoogleStoragePlugin::DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) +void GoogleStoragePlugin::DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled) { gcs::Client client(mainClient_); @@ -325,6 +325,4 @@ { throw StoragePluginException("GoogleCloudStorage: error while deleting file " + std::string(path) + ": " + deletionStatus.message()); } - - return false; // not 100% sure that the file has been deleted }