diff options
Diffstat (limited to 'common/storage')
-rw-r--r-- | common/storage/entitystore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index d3420e4..3addf94 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -490,6 +490,8 @@ void EntityStore::readLatest(const QByteArray &type, const QByteArray &key, cons | |||
490 | { | 490 | { |
491 | Q_ASSERT(d); | 491 | Q_ASSERT(d); |
492 | Q_ASSERT(!key.isEmpty()); | 492 | Q_ASSERT(!key.isEmpty()); |
493 | // TODO: we shouldn't pass whole keys to this function | ||
494 | // check the testSingle test from querytest | ||
493 | const auto internalKey = [&key]() { | 495 | const auto internalKey = [&key]() { |
494 | if(key.size() == Identifier::DISPLAY_REPR_SIZE) { | 496 | if(key.size() == Identifier::DISPLAY_REPR_SIZE) { |
495 | return Identifier::fromDisplayByteArray(key).toInternalByteArray(); | 497 | return Identifier::fromDisplayByteArray(key).toInternalByteArray(); |