Mercurial > hg > orthanc-webviewer
changeset 294:dca8013585d1
fix for new API of Orthanc::FilesystemStorage
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Jan 2021 07:08:22 +0100 |
parents | e376158e2dbb |
children | fc57bf7c0c83 |
files | Plugin/Cache/CacheManager.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/Cache/CacheManager.cpp Wed Jan 06 18:02:43 2021 +0100 +++ b/Plugin/Cache/CacheManager.cpp Fri Jan 29 07:08:22 2021 +0100 @@ -475,7 +475,9 @@ bool ok; try { - pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown); + std::unique_ptr<Orthanc::IMemoryBuffer> buffer( + pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown)); + buffer->MoveToString(content); ok = (content.size() == size); } catch (std::runtime_error&)