diff Framework/PushMode/PushJob.cpp @ 8:4c3437217518

fix for compatibility with simplified OrthancPluginCppWrapper
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2018 09:16:51 +0100
parents 95226b754d9e
children 7e207ade2f1a
line wrap: on
line diff
--- a/Framework/PushMode/PushJob.cpp	Fri Sep 21 12:52:23 2018 +0200
+++ b/Framework/PushMode/PushJob.cpp	Wed Dec 05 09:16:51 2018 +0100
@@ -128,8 +128,7 @@
                      const std::vector<TransferBucket>& buckets) :
       job_(job),
       info_(info),
-      transactionUri_(transactionUri),
-      queue_(job.context_)
+      transactionUri_(transactionUri)
     {
       queue_.Reserve(buckets.size());
         
@@ -246,18 +245,15 @@
   }
     
     
-  PushJob::PushJob(OrthancPluginContext* context,
-                   const TransferQuery& query,
+  PushJob::PushJob(const TransferQuery& query,
                    OrthancInstancesCache& cache,
                    size_t threadsCount,
                    size_t targetBucketSize) :
     StatefulOrthancJob(JOB_TYPE_PUSH),
-    context_(context),
     cache_(cache),
     query_(query),
     threadsCount_(threadsCount),
-    targetBucketSize_(targetBucketSize),
-    peers_(context)
+    targetBucketSize_(targetBucketSize)
   {
     if (!peers_.LookupName(peerIndex_, query_.GetPeer()))
     {