diff options
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 c864e77..f3d05f1 100644 --- a/common/index.cpp +++ b/common/index.cpp | |||
@@ -44,6 +44,6 @@ QByteArray Index::lookup(const QByteArray &key) | |||
44 | { | 44 | { |
45 | QByteArray result; | 45 | QByteArray result; |
46 | //We have to create a deep copy, otherwise the returned data may become invalid when the transaction ends. | 46 | //We have to create a deep copy, otherwise the returned data may become invalid when the transaction ends. |
47 | lookup(key, [&result](const QByteArray &value) { result = QByteArray(value.constData(), value.size()); }, [this](const Index::Error &error) { SinkTrace() << "Error while retrieving value" << error.message; }); | 47 | lookup(key, [&result](const QByteArray &value) { result = QByteArray(value.constData(), value.size()); }, [this](const Index::Error &error) { SinkWarning() << "Error while retrieving value" << error.message; }); |
48 | return result; | 48 | return result; |
49 | } | 49 | } |