Mercurial > dedupe
comparison MemoryDBLink.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 | c9447697609f |
| children | f49023c61dac |
comparison
equal
deleted
inserted
replaced
| 85:1f9e27a0bd7f | 86:af7962f3274b |
|---|---|
| 1 #include "MemoryDBLink.hpp" | 1 #include "MemoryDBLink.hpp" |
| 2 #include "Exception/ValueExistsException.hpp" | 2 #include "Exception/ValueExistsException.hpp" |
| 3 #include <QtCore/QStringList> | 3 #include <QtCore/QStringList> |
| 4 | 4 |
| 5 void MemoryDBLink::addFile(const QString& path, qint64 size, | 5 void MemoryDBLink::addFile(const QString& path, quint64 size, |
| 6 const QDateTime& dtime, const QByteArray& hash) | 6 const QDateTime& dtime, const QByteArray& hash) |
| 7 { | 7 { |
| 8 addFile(DBInfo(path, size, dtime, hash)); | 8 addFile(DBInfo(path, size, dtime, hash)); |
| 9 } | 9 } |
| 10 | 10 |
| 82 return MTIME_DIFFERENT; | 82 return MTIME_DIFFERENT; |
| 83 } | 83 } |
| 84 return NONE; | 84 return NONE; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void MemoryDBLink::updateFile(const QString& path, qint64 size, | 87 void MemoryDBLink::updateFile(const QString& path, quint64 size, |
| 88 const QDateTime& dtime, const QByteArray& hash) | 88 const QDateTime& dtime, const QByteArray& hash) |
| 89 { | 89 { |
| 90 updateFile(DBInfo(path, size, dtime, hash)); | 90 updateFile(DBInfo(path, size, dtime, hash)); |
| 91 } | 91 } |
| 92 | 92 |
