diff SqliteDBLink.cpp @ 7:d6fdca3bf24e

Make sure everything works for MemoryDBLink.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 22 Aug 2012 01:07:06 +0200
parents 5e4985407feb
children b5943e4bf676
line wrap: on
line diff
--- a/SqliteDBLink.cpp	Wed Aug 22 00:42:25 2012 +0200
+++ b/SqliteDBLink.cpp	Wed Aug 22 01:07:06 2012 +0200
@@ -68,11 +68,6 @@
   addFile(DBInfo(path, size, dtime, hash));
 }
 
-void SqliteDBLink::updateFile(const QString& path, qint64 size, const QDateTime& dtime, const QByteArray& hash)
-{
-  updateFile(DBInfo(path, size, dtime, hash));
-}
-
 bool SqliteDBLink::tryAddFile(const DBInfo& dbinfo)
 {
   if (exists(dbinfo.path()))
@@ -90,6 +85,11 @@
   return true;
 }
 
+void SqliteDBLink::updateFile(const QString& path, qint64 size, const QDateTime& dtime, const QByteArray& hash)
+{
+  updateFile(DBInfo(path, size, dtime, hash));
+}
+
 void SqliteDBLink::updateFile(const DBInfo& dbinfo)
 {
   QSqlQuery query;