Mercurial > hg > orthanc-webviewer
comparison Plugin/Cache/CacheManager.cpp @ 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 |
comparison
equal
deleted
inserted
replaced
293:e376158e2dbb | 294:dca8013585d1 |
---|---|
473 } | 473 } |
474 | 474 |
475 bool ok; | 475 bool ok; |
476 try | 476 try |
477 { | 477 { |
478 pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown); | 478 std::unique_ptr<Orthanc::IMemoryBuffer> buffer( |
479 pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown)); | |
480 buffer->MoveToString(content); | |
479 ok = (content.size() == size); | 481 ok = (content.size() == size); |
480 } | 482 } |
481 catch (std::runtime_error&) | 483 catch (std::runtime_error&) |
482 { | 484 { |
483 ok = false; | 485 ok = false; |