diff options
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; |