diff OrthancServer/SQLiteDatabaseWrapper.cpp @ 3075:ead8576a02ef db-changes

IDatabaseWrapper::ApplyLookupResources now returns lists
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Jan 2019 18:39:25 +0100
parents ce272138f15e
children 147497152ce3
line wrap: on
line diff
--- a/OrthancServer/SQLiteDatabaseWrapper.cpp	Wed Jan 02 15:50:44 2019 +0100
+++ b/OrthancServer/SQLiteDatabaseWrapper.cpp	Wed Jan 02 18:39:25 2019 +0100
@@ -1145,8 +1145,8 @@
   };
 
   
-  static void AnswerLookup(std::vector<std::string>& resourcesId,
-                           std::vector<std::string>& instancesId,
+  static void AnswerLookup(std::list<std::string>& resourcesId,
+                           std::list<std::string>& instancesId,
                            SQLite::Connection& db,
                            ResourceType level)
   {
@@ -1219,8 +1219,8 @@
   }
 
 
-  void SQLiteDatabaseWrapper::ApplyLookupResources(std::vector<std::string>& resourcesId,
-                                                   std::vector<std::string>* instancesId,
+  void SQLiteDatabaseWrapper::ApplyLookupResources(std::list<std::string>& resourcesId,
+                                                   std::list<std::string>* instancesId,
                                                    const std::vector<DatabaseConstraint>& lookup,
                                                    ResourceType queryLevel,
                                                    size_t limit)