diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 0b9d324..4ca484a 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -153,8 +153,9 @@ bool Storage::isInternalKey(const QByteArray &key) | |||
153 | 153 | ||
154 | QByteArray Storage::assembleKey(const QByteArray &key, qint64 revision) | 154 | QByteArray Storage::assembleKey(const QByteArray &key, qint64 revision) |
155 | { | 155 | { |
156 | Q_ASSERT(revision <= 9999); | ||
156 | Q_ASSERT(key.size() == 38); | 157 | Q_ASSERT(key.size() == 38); |
157 | return key + QByteArray::number(revision); | 158 | return key + QByteArray::number(revision).rightJustified(4, '0', false); |
158 | } | 159 | } |
159 | 160 | ||
160 | QByteArray Storage::uidFromKey(const QByteArray &key) | 161 | QByteArray Storage::uidFromKey(const QByteArray &key) |