Mercurial > dedupe
diff FileDBLink.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 | a5788991ca9f |
line wrap: on
line diff
--- a/FileDBLink.cpp Thu Oct 10 15:55:30 2013 +0200 +++ b/FileDBLink.cpp Thu Oct 10 16:07:35 2013 +0200 @@ -56,7 +56,7 @@ return hash.result(); } -bool FileDBLink::updateAllWithSize(qint64 size) +bool FileDBLink::updateAllWithSize(quint64 size) { const QList<dbinf_ptr_t> others = filesWithSize(size); if (!others.empty()) { @@ -71,7 +71,7 @@ return false; } -void FileDBLink::addFile(const QString& path, qint64 size, +void FileDBLink::addFile(const QString& path, quint64 size, const QDateTime& lastModified, bool lazy) { QByteArray hash; @@ -87,7 +87,7 @@ fileinfo.lastModified(), lazy); } -void FileDBLink::updateFile(const QString& path, qint64 size, +void FileDBLink::updateFile(const QString& path, quint64 size, const QDateTime& lastModified, bool lazy) { QByteArray hash; @@ -195,8 +195,8 @@ } -const QList<FileDBLink::dbinf_ptr_t> -FileDBLink::filesWithSize(qint64 size, const QString& prefix) const +const QList<FileDBLink::dbinf_ptr_t> +FileDBLink::filesWithSize(quint64 size, const QString& prefix) const { QList<dbinf_ptr_t> retVal; const QList<dbinf_ptr_t> vals = values(prefix);
