diff options
author | Minijackson <minijackson@riseup.net> | 2018-07-13 17:15:53 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-07-13 17:15:53 +0200 |
commit | 1b5499770273913ad26b213406df4208b10e2b3c (patch) | |
tree | 85e13a65e7c6e702db3e6c433b95e718e7072148 /common/storage/key.h | |
parent | d0ab46b20b74acef104038cbc5c1b769be863cd3 (diff) | |
download | sink-1b5499770273913ad26b213406df4208b10e2b3c.tar.gz sink-1b5499770273913ad26b213406df4208b10e2b3c.zip |
Finish converting DataStoreQuery to new Key API
Diffstat (limited to 'common/storage/key.h')
-rw-r--r-- | common/storage/key.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/storage/key.h b/common/storage/key.h index 76dbd13..40f4aca 100644 --- a/common/storage/key.h +++ b/common/storage/key.h | |||
@@ -76,6 +76,9 @@ public: | |||
76 | static const constexpr size_t INTERNAL_REPR_SIZE = Identifier::INTERNAL_REPR_SIZE + Revision::INTERNAL_REPR_SIZE; | 76 | static const constexpr size_t INTERNAL_REPR_SIZE = Identifier::INTERNAL_REPR_SIZE + Revision::INTERNAL_REPR_SIZE; |
77 | static const constexpr size_t DISPLAY_REPR_SIZE = Identifier::DISPLAY_REPR_SIZE + Revision::DISPLAY_REPR_SIZE; | 77 | static const constexpr size_t DISPLAY_REPR_SIZE = Identifier::DISPLAY_REPR_SIZE + Revision::DISPLAY_REPR_SIZE; |
78 | 78 | ||
79 | // Just to be able to store keys into Qt containers | ||
80 | [[deprecated("Don't use the default constructor")]] | ||
81 | Key() : id(), rev(0) {} | ||
79 | Key(const Identifier &id, const Revision &rev) : id(id), rev(rev) {} | 82 | Key(const Identifier &id, const Revision &rev) : id(id), rev(rev) {} |
80 | 83 | ||
81 | QByteArray toInternalByteArray() const; | 84 | QByteArray toInternalByteArray() const; |