diff OrthancServer/ServerIndex.cpp @ 1354:3dd494f201a1

ResourceFinder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 May 2015 12:17:35 +0200
parents 382439943749
children 216db29c5aa9
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue May 12 18:27:14 2015 +0200
+++ b/OrthancServer/ServerIndex.cpp	Wed May 13 12:17:35 2015 +0200
@@ -1075,7 +1075,7 @@
 
 
 
-  void ServerIndex::GetAllUuids(Json::Value& target,
+  void ServerIndex::GetAllUuids(std::list<std::string>& target,
                                 ResourceType resourceType)
   {
     std::list<std::string> lst;
@@ -1085,11 +1085,11 @@
       db_.GetAllPublicIds(lst, resourceType);
     }
 
-    target = Json::arrayValue;
+    target.clear();
     for (std::list<std::string>::const_iterator
            it = lst.begin(); it != lst.end(); ++it)
     {
-      target.append(*it);
+      target.push_back(*it);
     }
   }