From d320030c53cf9fd4338ca3f6da00a9b876c13397 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 21 Aug 2018 13:40:59 +0200 Subject: =?UTF-8?q?Refactor=20QByteArray=20=E2=86=94=20size=5Ft=20conversi?= =?UTF-8?q?ons=20into=20utils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/storage/entitystore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/storage') 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 EntityStore::fullScan(const QByteArray &type) return true; } - size_t revision = *reinterpret_cast(key.constData()); + size_t revision = byteArrayToSizeT(key); const auto metadata = flatbuffers::GetRoot(buffer.metadataBuffer()); const QByteArray uid = DataStore::getUidFromRevision(d->getTransaction(), revision); -- cgit v1.2.3