diff SqliteDBLink.cpp @ 86:af7962f3274b

Use quint64 for sizes, rather than qint64.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Thu, 10 Oct 2013 16:07:35 +0200
parents 1f9e27a0bd7f
children 9e337bd96bd3
line wrap: on
line diff
--- a/SqliteDBLink.cpp	Thu Oct 10 15:55:30 2013 +0200
+++ b/SqliteDBLink.cpp	Thu Oct 10 16:07:35 2013 +0200
@@ -71,7 +71,7 @@
   return NONE;
 }
 
-void SqliteDBLink::addFile(const QString& path, qint64 size,
+void SqliteDBLink::addFile(const QString& path, quint64 size,
 			   const QDateTime& dtime, const QByteArray& hash)
 {
   addFile(DBInfo(path, size, dtime, hash));
@@ -95,7 +95,7 @@
 }
 
 void SqliteDBLink::updateFile(const QString& path,
-			      qint64 size, const QDateTime& dtime,
+			      quint64 size, const QDateTime& dtime,
 			      const QByteArray& hash)
 {
   updateFile(DBInfo(path, size, dtime, hash));
@@ -161,7 +161,7 @@
   int checksumIndex = query.record().indexOf("checksum");
   while (query.next()) {
     QString path = query.value(pathIndex).toString();
-    qint64 size = query.value(sizeIndex).toInt();
+    quint64 size = query.value(sizeIndex).toInt();
     QDateTime mtime = query.value(dateIndex).toDateTime();
     QByteArray checksum = query.value(checksumIndex).toByteArray();
 
@@ -198,10 +198,9 @@
   }
 }
 
-const QList<FileDBLink::dbinf_ptr_t> 
-SqliteDBLink::filesWithSize(qint64 size, const QString& prefix) const
+const QList<FileDBLink::dbinf_ptr_t>
+SqliteDBLink::filesWithSize(quint64 size, const QString& prefix) const
 {
   //This is incredibly inefficient and should be reimplemented
   return FileDBLink::filesWithSize(size, prefix);
 }
-