# HG changeset patch # User Sebastien Jodogne # Date 1420452898 -3600 # Node ID 2ffe07abd9d8461cdb2c38053e58706ee9918186 # Parent 40725595aaf068a93faefd1c81190a538bf4df46 removal of const on IStorageArea::Read() diff -r 40725595aaf0 -r 2ffe07abd9d8 Core/FileStorage/FilesystemStorage.cpp --- a/Core/FileStorage/FilesystemStorage.cpp Mon Dec 15 10:20:33 2014 +0100 +++ b/Core/FileStorage/FilesystemStorage.cpp Mon Jan 05 11:14:58 2015 +0100 @@ -139,7 +139,7 @@ void FilesystemStorage::Read(std::string& content, const std::string& uuid, - FileContentType /*type*/) const + FileContentType /*type*/) { content.clear(); Toolbox::ReadFile(content, GetPath(uuid).string()); diff -r 40725595aaf0 -r 2ffe07abd9d8 Core/FileStorage/FilesystemStorage.h --- a/Core/FileStorage/FilesystemStorage.h Mon Dec 15 10:20:33 2014 +0100 +++ b/Core/FileStorage/FilesystemStorage.h Mon Jan 05 11:14:58 2015 +0100 @@ -60,7 +60,7 @@ virtual void Read(std::string& content, const std::string& uuid, - FileContentType type) const; + FileContentType type); virtual void Remove(const std::string& uuid, FileContentType type); diff -r 40725595aaf0 -r 2ffe07abd9d8 Core/FileStorage/IStorageArea.h --- a/Core/FileStorage/IStorageArea.h Mon Dec 15 10:20:33 2014 +0100 +++ b/Core/FileStorage/IStorageArea.h Mon Jan 05 11:14:58 2015 +0100 @@ -52,7 +52,7 @@ virtual void Read(std::string& content, const std::string& uuid, - FileContentType type) const = 0; + FileContentType type) = 0; virtual void Remove(const std::string& uuid, FileContentType type) = 0; diff -r 40725595aaf0 -r 2ffe07abd9d8 OrthancServer/main.cpp --- a/OrthancServer/main.cpp Mon Dec 15 10:20:33 2014 +0100 +++ b/OrthancServer/main.cpp Mon Jan 05 11:14:58 2015 +0100 @@ -406,7 +406,7 @@ virtual void Read(std::string& content, const std::string& uuid, - FileContentType type) const + FileContentType type) { if (type != FileContentType_Dicom) { diff -r 40725595aaf0 -r 2ffe07abd9d8 Plugins/Engine/OrthancPlugins.cpp --- a/Plugins/Engine/OrthancPlugins.cpp Mon Dec 15 10:20:33 2014 +0100 +++ b/Plugins/Engine/OrthancPlugins.cpp Mon Jan 05 11:14:58 2015 +0100 @@ -1124,7 +1124,7 @@ virtual void Read(std::string& content, const std::string& uuid, - FileContentType type) const + FileContentType type) { void* buffer = NULL; int64_t size = 0; @@ -1171,7 +1171,7 @@ throw OrthancException(ErrorCode_BadSequenceOfCalls); } - return new PluginStorageArea(pimpl_->storageArea_);; + return new PluginStorageArea(pimpl_->storageArea_); }