Mercurial > dedupe
comparison FileDBLink.cpp @ 93:308a718812ba
Small refactoring to allow lazy commits.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Tue, 22 Oct 2013 11:53:54 +0200 |
| parents | f49023c61dac |
| children | c7da835ea912 |
comparison
equal
deleted
inserted
replaced
| 92:f49023c61dac | 93:308a718812ba |
|---|---|
| 95 const QDateTime& lastModified, bool lazy) | 95 const QDateTime& lastModified, bool lazy) |
| 96 { | 96 { |
| 97 QByteArray hash; | 97 QByteArray hash; |
| 98 if (!lazy) | 98 if (!lazy) |
| 99 hash = computeHash(path); | 99 hash = computeHash(path); |
| 100 updateFile(path, size, lastModified, hash); | 100 updateFile(path, size, lastModified, hash, lazy); |
| 101 } | 101 } |
| 102 | 102 |
| 103 const QList<FileDBLink::dbinf_ptr_t > | 103 const QList<FileDBLink::dbinf_ptr_t > |
| 104 FileDBLink::sortOn(const QString& prefix, SORTORDER order, bool extended) | 104 FileDBLink::sortOn(const QString& prefix, SORTORDER order, bool extended) |
| 105 { | 105 { |
