summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.cpp
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-08-21 13:40:59 +0200
committerMinijackson <minijackson@riseup.net>2018-08-21 14:04:56 +0200
commitd320030c53cf9fd4338ca3f6da00a9b876c13397 (patch)
tree6e9633c3a834bb50a55bf4d6ce60dce32de987c0 /common/storage/entitystore.cpp
parent23e13c91e44e9d1fcbe2215f16d10117de4d0e84 (diff)
downloadsink-d320030c53cf9fd4338ca3f6da00a9b876c13397.tar.gz
sink-d320030c53cf9fd4338ca3f6da00a9b876c13397.zip
Refactor QByteArray ↔ size_t conversions into utils
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r--common/storage/entitystore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp
index 0640f1c..daabf1f 100644
--- a/common/storage/entitystore.cpp
+++ b/common/storage/entitystore.cpp
@@ -451,7 +451,7 @@ QVector<Identifier> EntityStore::fullScan(const QByteArray &type)
451 return true; 451 return true;
452 } 452 }
453 453
454 size_t revision = *reinterpret_cast<const size_t*>(key.constData()); 454 size_t revision = byteArrayToSizeT(key);
455 455
456 const auto metadata = flatbuffers::GetRoot<Metadata>(buffer.metadataBuffer()); 456 const auto metadata = flatbuffers::GetRoot<Metadata>(buffer.metadataBuffer());
457 const QByteArray uid = DataStore::getUidFromRevision(d->getTransaction(), revision); 457 const QByteArray uid = DataStore::getUidFromRevision(d->getTransaction(), revision);