diff options
author | Minijackson <minijackson@riseup.net> | 2018-08-21 12:03:40 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-08-21 12:03:40 +0200 |
commit | 6ef0a29d8e468de50c9dcf260db45957d028a083 (patch) | |
tree | 3c4f90c992595cb440e7a8a007d2f643c595777a /common/storage/key.cpp | |
parent | 91a86f8664f4c8ddec6546bd1faeb793b8cd70e3 (diff) | |
download | sink-6ef0a29d8e468de50c9dcf260db45957d028a083.tar.gz sink-6ef0a29d8e468de50c9dcf260db45957d028a083.zip |
Separate UIDs and revisions
Diffstat (limited to 'common/storage/key.cpp')
-rw-r--r-- | common/storage/key.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/storage/key.cpp b/common/storage/key.cpp index 2327061..a6567ea 100644 --- a/common/storage/key.cpp +++ b/common/storage/key.cpp | |||
@@ -155,6 +155,11 @@ qint64 Revision::toQint64() const | |||
155 | return rev; | 155 | return rev; |
156 | } | 156 | } |
157 | 157 | ||
158 | size_t Revision::toSizeT() const | ||
159 | { | ||
160 | return rev; | ||
161 | } | ||
162 | |||
158 | bool Revision::isValidInternal(const QByteArray &bytes) | 163 | bool Revision::isValidInternal(const QByteArray &bytes) |
159 | { | 164 | { |
160 | if (bytes.size() != Revision::INTERNAL_REPR_SIZE) { | 165 | if (bytes.size() != Revision::INTERNAL_REPR_SIZE) { |