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 13:40:59 +0200
commit91f0b273fc2072a4d7c96ba83b37fe45b3cda1ef (patch)
treead44891a5bb90cef9eed398f074cea979f057440 /common/storage/entitystore.cpp
parent6ef0a29d8e468de50c9dcf260db45957d028a083 (diff)
downloadsink-91f0b273fc2072a4d7c96ba83b37fe45b3cda1ef.tar.gz
sink-91f0b273fc2072a4d7c96ba83b37fe45b3cda1ef.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 6231479..c11f49c 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);