comparison Plugins/Engine/OrthancPlugins.cpp @ 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 d6a65dc6d0ac
comparison
equal deleted inserted replaced
1249:40725595aaf0 1250:2ffe07abd9d8
1122 } 1122 }
1123 } 1123 }
1124 1124
1125 virtual void Read(std::string& content, 1125 virtual void Read(std::string& content,
1126 const std::string& uuid, 1126 const std::string& uuid,
1127 FileContentType type) const 1127 FileContentType type)
1128 { 1128 {
1129 void* buffer = NULL; 1129 void* buffer = NULL;
1130 int64_t size = 0; 1130 int64_t size = 0;
1131 1131
1132 if (params_.read_(&buffer, &size, uuid.c_str(), Convert(type)) != 0) 1132 if (params_.read_(&buffer, &size, uuid.c_str(), Convert(type)) != 0)
1169 if (!HasStorageArea()) 1169 if (!HasStorageArea())
1170 { 1170 {
1171 throw OrthancException(ErrorCode_BadSequenceOfCalls); 1171 throw OrthancException(ErrorCode_BadSequenceOfCalls);
1172 } 1172 }
1173 1173
1174 return new PluginStorageArea(pimpl_->storageArea_);; 1174 return new PluginStorageArea(pimpl_->storageArea_);
1175 } 1175 }
1176 1176
1177 1177
1178 1178
1179 const char* OrthancPlugins::GetProperty(const char* plugin, 1179 const char* OrthancPlugins::GetProperty(const char* plugin,