diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hawd/dataset.cpp | 2 | ||||
-rw-r--r-- | tests/storagetest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/hawd/dataset.cpp b/tests/hawd/dataset.cpp index 3325850..0d3047f 100644 --- a/tests/hawd/dataset.cpp +++ b/tests/hawd/dataset.cpp | |||
@@ -297,7 +297,7 @@ void Dataset::eachRow(const std::function<void(const Row &row)> &resultHandler) | |||
297 | } | 297 | } |
298 | 298 | ||
299 | row.fromBinary(value); | 299 | row.fromBinary(value); |
300 | row.m_key = *(qint64 *)key.data(); | 300 | row.m_key = *(const qint64 *)key.data(); |
301 | resultHandler(row); | 301 | resultHandler(row); |
302 | return true; | 302 | return true; |
303 | }, | 303 | }, |
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index 3368549..802947f 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp | |||
@@ -198,7 +198,7 @@ private slots: | |||
198 | QList<QFuture<void>> futures; | 198 | QList<QFuture<void>> futures; |
199 | const int concurrencyLevel = 20; | 199 | const int concurrencyLevel = 20; |
200 | for (int num = 0; num < concurrencyLevel; num++) { | 200 | for (int num = 0; num < concurrencyLevel; num++) { |
201 | futures << QtConcurrent::run([this, count, &error]() { | 201 | futures << QtConcurrent::run([this, &error]() { |
202 | Sink::Storage::DataStore storage(testDataPath, dbName, Sink::Storage::DataStore::ReadOnly); | 202 | Sink::Storage::DataStore storage(testDataPath, dbName, Sink::Storage::DataStore::ReadOnly); |
203 | Sink::Storage::DataStore storage2(testDataPath, dbName + "2", Sink::Storage::DataStore::ReadOnly); | 203 | Sink::Storage::DataStore storage2(testDataPath, dbName + "2", Sink::Storage::DataStore::ReadOnly); |
204 | for (int i = 0; i < count; i++) { | 204 | for (int i = 0; i < count; i++) { |