diff options
Diffstat (limited to 'common/storage/key.h')
-rw-r--r-- | common/storage/key.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/storage/key.h b/common/storage/key.h index baabe38..da90ddd 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); |
@@ -75,6 +75,7 @@ public: | |||
75 | QByteArray toDisplayByteArray() const; | 75 | QByteArray toDisplayByteArray() const; |
76 | static Revision fromDisplayByteArray(const QByteArray &bytes); | 76 | static Revision fromDisplayByteArray(const QByteArray &bytes); |
77 | qint64 toQint64() const; | 77 | qint64 toQint64() const; |
78 | size_t toSizeT() const; | ||
78 | 79 | ||
79 | static bool isValidInternal(const QByteArray &); | 80 | static bool isValidInternal(const QByteArray &); |
80 | static bool isValidDisplay(const QByteArray &); | 81 | static bool isValidDisplay(const QByteArray &); |
@@ -84,7 +85,7 @@ public: | |||
84 | bool operator!=(const Revision &other) const; | 85 | bool operator!=(const Revision &other) const; |
85 | 86 | ||
86 | private: | 87 | private: |
87 | qint64 rev; | 88 | size_t rev; |
88 | }; | 89 | }; |
89 | 90 | ||
90 | class Key | 91 | class Key |