diff options
author | Minijackson <minijackson@riseup.net> | 2018-08-07 11:02:00 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-08-21 14:02:42 +0200 |
commit | 40fbc56ba745322ed75ac12c5551ce6b9bcb1cc4 (patch) | |
tree | b58e74b52d929f806e45d6ac32710a1a63f9eccc /common/storage/key.h | |
parent | af91a18748b91f4a4fc0d83247561371d376bec5 (diff) | |
download | sink-40fbc56ba745322ed75ac12c5551ce6b9bcb1cc4.tar.gz sink-40fbc56ba745322ed75ac12c5551ce6b9bcb1cc4.zip |
Store revisions as size_t
Diffstat (limited to 'common/storage/key.h')
-rw-r--r-- | common/storage/key.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage/key.h b/common/storage/key.h index baabe38..acd81cf 100644 --- a/common/storage/key.h +++ b/common/storage/key.h | |||
@@ -67,7 +67,7 @@ public: | |||
67 | static const constexpr size_t INTERNAL_REPR_SIZE = 19; | 67 | static const constexpr size_t INTERNAL_REPR_SIZE = 19; |
68 | static const constexpr size_t DISPLAY_REPR_SIZE = 19; | 68 | static const constexpr size_t DISPLAY_REPR_SIZE = 19; |
69 | 69 | ||
70 | Revision(qint64 rev) : rev(rev) {} | 70 | Revision(size_t rev) : rev(rev) {} |
71 | 71 | ||
72 | QByteArray toInternalByteArray() const; | 72 | QByteArray toInternalByteArray() const; |
73 | static Revision fromInternalByteArray(const QByteArray &bytes); | 73 | static Revision fromInternalByteArray(const QByteArray &bytes); |
@@ -84,7 +84,7 @@ public: | |||
84 | bool operator!=(const Revision &other) const; | 84 | bool operator!=(const Revision &other) const; |
85 | 85 | ||
86 | private: | 86 | private: |
87 | qint64 rev; | 87 | size_t rev; |
88 | }; | 88 | }; |
89 | 89 | ||
90 | class Key | 90 | class Key |