diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-13 14:43:37 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-13 14:43:37 +0200 |
commit | a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d (patch) | |
tree | d2d8737bb7758fbf521909a367e9188b9c5690f6 /common/pipeline.cpp | |
parent | 60965ca1431b2b3bed4f49e6bf1a9d5e5d86a3d9 (diff) | |
download | sink-a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d.tar.gz sink-a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d.zip |
Fixed new diagnostics errors
Diffstat (limited to 'common/pipeline.cpp')
-rw-r--r-- | common/pipeline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/pipeline.cpp b/common/pipeline.cpp index f1a4a32..000d2b2 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp | |||
@@ -119,9 +119,9 @@ void Pipeline::startTransaction() | |||
119 | if (d->storage.exists()) { | 119 | if (d->storage.exists()) { |
120 | while (!d->transaction.validateNamedDatabases()) { | 120 | while (!d->transaction.validateNamedDatabases()) { |
121 | SinkWarning() << "Opened an invalid transaction!!!!!!"; | 121 | SinkWarning() << "Opened an invalid transaction!!!!!!"; |
122 | d->transaction = std::move(storage().createTransaction(Storage::ReadWrite, [](const Sink::Storage::Error &error) { | 122 | d->transaction = storage().createTransaction(Storage::ReadWrite, [](const Sink::Storage::Error &error) { |
123 | SinkWarning() << error.message; | 123 | SinkWarning() << error.message; |
124 | })); | 124 | }); |
125 | } | 125 | } |
126 | } | 126 | } |
127 | } | 127 | } |
@@ -316,7 +316,7 @@ KAsync::Job<qint64> Pipeline::modifiedEntity(void const *command, size_t size) | |||
316 | 316 | ||
317 | // Remove deletions | 317 | // Remove deletions |
318 | if (modifyEntity->deletions()) { | 318 | if (modifyEntity->deletions()) { |
319 | for (const auto &property : *modifyEntity->deletions()) { | 319 | for (const flatbuffers::String *property : *modifyEntity->deletions()) { |
320 | newAdaptor->setProperty(BufferUtils::extractBuffer(property), QVariant()); | 320 | newAdaptor->setProperty(BufferUtils::extractBuffer(property), QVariant()); |
321 | } | 321 | } |
322 | } | 322 | } |