Mercurial > hg > orthanc-databases
comparison Framework/Plugins/IndexBackend.cpp @ 219:dd6cfc250747
removed useless class StorageAreaBuffer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Mar 2021 14:52:55 +0200 |
parents | c2e4a909de0e |
children | 492aa3edf572 |
comparison
equal
deleted
inserted
replaced
218:90eb271f85b2 | 219:dd6cfc250747 |
---|---|
2212 } | 2212 } |
2213 | 2213 |
2214 | 2214 |
2215 void IndexBackend::Register(IndexBackend& backend) | 2215 void IndexBackend::Register(IndexBackend& backend) |
2216 { | 2216 { |
2217 OrthancPluginContext* context = backend.GetContext(); | |
2218 | |
2219 bool hasLoadedV3 = false; | 2217 bool hasLoadedV3 = false; |
2220 | 2218 |
2221 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | 2219 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 |
2222 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) | 2220 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) |
2223 if (OrthancPluginCheckVersionAdvanced(context, 1, 9, 2) == 1) | 2221 if (OrthancPluginCheckVersionAdvanced(backend.GetContext(), 1, 9, 2) == 1) |
2224 { | 2222 { |
2225 OrthancDatabases::DatabaseBackendAdapterV3::Register(backend); | 2223 OrthancDatabases::DatabaseBackendAdapterV3::Register(backend); |
2226 hasLoadedV3 = true; | 2224 hasLoadedV3 = true; |
2227 } | 2225 } |
2228 # endif | 2226 # endif |