# HG changeset patch # User Sebastien Jodogne # Date 1611901754 -3600 # Node ID fc57bf7c0c83bb30faafc095bcf2a93ff46e2b7a # Parent dca8013585d1e290da72f93d0609cef20eb98e27 backward compatibility with Orthanc framework 1.8.2 diff -r dca8013585d1 -r fc57bf7c0c83 Plugin/Cache/CacheManager.cpp --- a/Plugin/Cache/CacheManager.cpp Fri Jan 29 07:08:22 2021 +0100 +++ b/Plugin/Cache/CacheManager.cpp Fri Jan 29 07:29:14 2021 +0100 @@ -475,9 +475,14 @@ bool ok; 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)); buffer->MoveToString(content); +#else + pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown); +#endif + ok = (content.size() == size); } catch (std::runtime_error&)