diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-25 19:18:08 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-25 19:42:27 +0200 |
commit | 0f6f34ca2fca81734544b32e8dbc8ee32122bb65 (patch) | |
tree | 79bb05d19d6d7f3ec4966b2913b7628d3ad8de0f /common/index.cpp | |
parent | 7f0f45c544b3a48feec3226faa8bb3018d542d9c (diff) | |
download | sink-0f6f34ca2fca81734544b32e8dbc8ee32122bb65.tar.gz sink-0f6f34ca2fca81734544b32e8dbc8ee32122bb65.zip |
Fixed more warnings and then disabled them
..because there is a boatload more to fix.
Diffstat (limited to 'common/index.cpp')
-rw-r--r-- | common/index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/index.cpp b/common/index.cpp index 725c28b..a4641bc 100644 --- a/common/index.cpp +++ b/common/index.cpp | |||
@@ -48,6 +48,6 @@ QByteArray Index::lookup(const QByteArray &key) | |||
48 | { | 48 | { |
49 | QByteArray result; | 49 | QByteArray result; |
50 | //We have to create a deep copy, otherwise the returned data may become invalid when the transaction ends. | 50 | //We have to create a deep copy, otherwise the returned data may become invalid when the transaction ends. |
51 | lookup(key, [&](const QByteArray &value) { result = QByteArray(value.constData(), value.size()); }, [this](const Index::Error &) { }); | 51 | lookup(key, [&](const QByteArray &value) { result = QByteArray(value.constData(), value.size()); }, [](const Index::Error &) { }); |
52 | return result; | 52 | return result; |
53 | } | 53 | } |