diff SQLite/Plugins/SQLiteIndex.cpp @ 201:42990b2dd51b

create IDatabaseBackendOutput only if needed
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Mar 2021 16:51:51 +0100
parents 8cae98f73d53
children 73cc85f3d9c1
line wrap: on
line diff
--- a/SQLite/Plugins/SQLiteIndex.cpp	Thu Mar 18 15:21:17 2021 +0100
+++ b/SQLite/Plugins/SQLiteIndex.cpp	Thu Mar 18 16:51:51 2021 +0100
@@ -132,8 +132,9 @@
   }
 
 
-  SQLiteIndex::SQLiteIndex(const std::string& path) :
-    IndexBackend(new Factory(*this)),
+  SQLiteIndex::SQLiteIndex(OrthancPluginContext* context,
+                           const std::string& path) :
+    IndexBackend(context, new Factory(*this)),
     path_(path),
     fast_(true)
   {
@@ -144,8 +145,8 @@
   }
 
 
-  SQLiteIndex::SQLiteIndex() :
-    IndexBackend(new Factory(*this)),
+  SQLiteIndex::SQLiteIndex(OrthancPluginContext* context) :
+    IndexBackend(context, new Factory(*this)),
     fast_(true)
   {
   }