changeset 1250:2ffe07abd9d8

removal of const on IStorageArea::Read()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Jan 2015 11:14:58 +0100
parents 40725595aaf0
children ac877a0fcf52
files Core/FileStorage/FilesystemStorage.cpp Core/FileStorage/FilesystemStorage.h Core/FileStorage/IStorageArea.h OrthancServer/main.cpp Plugins/Engine/OrthancPlugins.cpp
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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());
--- 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);
--- 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;
--- 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)
     {
--- 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_);
   }