summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/hawd/dataset.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hawd/dataset.cpp b/tests/hawd/dataset.cpp
index 592612e..dcc6b4f 100644
--- a/tests/hawd/dataset.cpp
+++ b/tests/hawd/dataset.cpp
@@ -276,9 +276,9 @@ Dataset::Row Dataset::row(qint64 key)
276 } 276 }
277 277
278 Row row(*this, key); 278 Row row(*this, key);
279 m_storage.read((const char *)&key, sizeof(qint64), 279 m_storage.scan((const char *)&key, sizeof(qint64),
280 [&row](void *ptr, int size) -> bool { 280 [&row](void *keyPtr, int keyLength, void *valuePtr, int valueSize) -> bool {
281 QByteArray array((const char*)ptr, size); 281 QByteArray array((const char*)valuePtr, valueSize);
282 row.fromBinary(array); 282 row.fromBinary(array);
283 return true; 283 return true;
284 }, 284 },