# HG changeset patch # User Sebastien Jodogne # Date 1749884996 -7200 # Node ID d89da90a262b5e286359b9c0eccfcdf31d5ed976 # Parent feb20efdf4bf86f551470d64f3b44ac89b790017 fix compatibility with 1.12.8 diff -r feb20efdf4bf -r d89da90a262b Plugin/Cache/CacheManager.cpp --- a/Plugin/Cache/CacheManager.cpp Tue Apr 15 13:46:42 2025 +0200 +++ b/Plugin/Cache/CacheManager.cpp Sat Jun 14 09:09:56 2025 +0200 @@ -467,8 +467,14 @@ try { #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0) - std::unique_ptr buffer( - pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown)); + std::unique_ptr buffer; + +# if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 8) + pimpl_->storage_.ReadWhole(uuid, Orthanc::FileContentType_Unknown); +# else + pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown); +# endif + buffer->MoveToString(content); #else pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown);