diff OrthancServer/DatabaseWrapper.cpp @ 1294:910478b2d4e4

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Feb 2015 13:48:05 +0100
parents 6e7e5ed91c2d
children 4ce47e8ed0d2
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp	Thu Feb 05 14:58:42 2015 +0100
+++ b/OrthancServer/DatabaseWrapper.cpp	Fri Feb 06 13:48:05 2015 +0100
@@ -251,9 +251,9 @@
     return id;
   }
 
-  bool DatabaseWrapper::LookupResource(const std::string& publicId,
-                                       int64_t& id,
-                                       ResourceType& type)
+  bool DatabaseWrapper::LookupResource(int64_t& id,
+                                       ResourceType& type,
+                                       const std::string& publicId)
   {
     SQLite::Statement s(db_, SQLITE_FROM_HERE, 
                         "SELECT internalId, resourceType FROM Resources WHERE publicId=?");