diff OrthancServer/ServerIndex.cpp @ 3036:8fd203510d8b db-changes

moving LookupIdentifierQuery to the graveyard
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Dec 2018 16:27:07 +0100
parents 54e422fe31ce
children ce272138f15e
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Wed Dec 19 14:20:11 2018 +0100
+++ b/OrthancServer/ServerIndex.cpp	Wed Dec 19 16:27:07 2018 +0100
@@ -2141,11 +2141,9 @@
     std::vector<DatabaseConstraint> query;
     query.push_back(DatabaseConstraint(c, level, DicomTagType_Identifier));
 
-    std::vector<std::string> instancesId;
-
     {
       boost::mutex::scoped_lock lock(mutex_);
-      db_.ApplyLookupResources(result, instancesId, query, level, 0);
+      db_.ApplyLookupResources(result, NULL, query, level, 0);
     }
   }
 
@@ -2565,7 +2563,7 @@
 
 
   void ServerIndex::ApplyLookupResources(std::vector<std::string>& resourcesId,
-                                         std::vector<std::string>& instancesId,
+                                         std::vector<std::string>* instancesId,
                                          const DatabaseLookup& lookup,
                                          ResourceType queryLevel,
                                          size_t limit)