summaryrefslogtreecommitdiffstats
path: root/common/typeindex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/typeindex.cpp')
-rw-r--r--common/typeindex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp
index 5a19839..0228ecb 100644
--- a/common/typeindex.cpp
+++ b/common/typeindex.cpp
@@ -245,7 +245,7 @@ QVector<QByteArray> TypeIndex::lookup(const QByteArray &property, const QVariant
245 Index index(indexName(property), transaction); 245 Index index(indexName(property), transaction);
246 const auto lookupKey = getByteArray(value); 246 const auto lookupKey = getByteArray(value);
247 index.lookup( 247 index.lookup(
248 lookupKey, [&, this](const QByteArray &value) { keys << value; }, [property, this](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << property; }); 248 lookupKey, [&](const QByteArray &value) { keys << value; }, [property](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << property; });
249 SinkTraceCtx(mLogCtx) << "Index lookup on " << property << " found " << keys.size() << " keys."; 249 SinkTraceCtx(mLogCtx) << "Index lookup on " << property << " found " << keys.size() << " keys.";
250 return keys; 250 return keys;
251 } else if (mSecondaryProperties.contains(property)) { 251 } else if (mSecondaryProperties.contains(property)) {
@@ -257,7 +257,7 @@ QVector<QByteArray> TypeIndex::lookup(const QByteArray &property, const QVariant
257 Index index(indexName(property + resultProperty), transaction); 257 Index index(indexName(property + resultProperty), transaction);
258 const auto lookupKey = getByteArray(value); 258 const auto lookupKey = getByteArray(value);
259 index.lookup( 259 index.lookup(
260 lookupKey, [&, this](const QByteArray &value) { secondaryKeys << value; }, [property, this](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << property; }); 260 lookupKey, [&](const QByteArray &value) { secondaryKeys << value; }, [property](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << property; });
261 SinkTraceCtx(mLogCtx) << "Looked up secondary keys: " << secondaryKeys; 261 SinkTraceCtx(mLogCtx) << "Looked up secondary keys: " << secondaryKeys;
262 for (const auto &secondary : secondaryKeys) { 262 for (const auto &secondary : secondaryKeys) {
263 keys += lookup(resultProperty, secondary, transaction); 263 keys += lookup(resultProperty, secondary, transaction);