Mercurial > hg > orthanc-object-storage
changeset 82:f30b9acf80f0
fix
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 17 Oct 2022 15:17:33 +0200 |
parents | e29987d80ecf |
children | 431ab61b5760 |
files | Google/GoogleStoragePlugin.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 }