diff OrthancServer/ServerIndex.cpp @ 1357:216db29c5aa9

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 May 2015 15:56:41 +0200
parents 3dd494f201a1
children 111e23bb4904
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Wed May 13 13:19:28 2015 +0200
+++ b/OrthancServer/ServerIndex.cpp	Wed May 13 15:56:41 2015 +0200
@@ -1078,19 +1078,8 @@
   void ServerIndex::GetAllUuids(std::list<std::string>& target,
                                 ResourceType resourceType)
   {
-    std::list<std::string> lst;
-
-    {
-      boost::mutex::scoped_lock lock(mutex_);
-      db_.GetAllPublicIds(lst, resourceType);
-    }
-
-    target.clear();
-    for (std::list<std::string>::const_iterator
-           it = lst.begin(); it != lst.end(); ++it)
-    {
-      target.push_back(*it);
-    }
+    boost::mutex::scoped_lock lock(mutex_);
+    db_.GetAllPublicIds(target, resourceType);
   }