From 0c1f6da51631c0a573a44e2f93eb4012d52dfe5c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 20 Oct 2016 17:46:10 +0200 Subject: Get access to properties in indexes. --- common/typeindex.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/typeindex.cpp') diff --git a/common/typeindex.cpp b/common/typeindex.cpp index 8f5de4f..036b662 100644 --- a/common/typeindex.cpp +++ b/common/typeindex.cpp @@ -238,10 +238,10 @@ void TypeIndex::index(const QByteArray &leftName, const QBy } template <> -QVector TypeIndex::secondaryLookup(const QByteArray &leftName, const QByteArray &rightName, const QVariant &value, Sink::Storage::DataStore::Transaction &transaction) +QVector TypeIndex::secondaryLookup(const QByteArray &leftName, const QByteArray &rightName, const QVariant &value) { QVector keys; - Index index(indexName(leftName + rightName), transaction); + Index index(indexName(leftName + rightName), *mTransaction); const auto lookupKey = getByteArray(value); index.lookup( lookupKey, [&](const QByteArray &value) { keys << value; }, [=](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << value; }); @@ -250,10 +250,10 @@ QVector TypeIndex::secondaryLookup(const QByteArray &lef } template <> -QVector TypeIndex::secondaryLookup(const QByteArray &leftName, const QByteArray &rightName, const QVariant &value, Sink::Storage::DataStore::Transaction &transaction) +QVector TypeIndex::secondaryLookup(const QByteArray &leftName, const QByteArray &rightName, const QVariant &value) { QVector keys; - Index index(indexName(leftName + rightName), transaction); + Index index(indexName(leftName + rightName), *mTransaction); const auto lookupKey = getByteArray(value); index.lookup( lookupKey, [&](const QByteArray &value) { keys << value; }, [=](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << value; }); -- cgit v1.2.3