Commit e1e47240 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix build

parent 053930ee
...@@ -98,13 +98,13 @@ void SearchJobTest::testModifySearch() ...@@ -98,13 +98,13 @@ void SearchJobTest::testModifySearch()
auto attr = created.attribute<PersistentSearchAttribute>(); auto attr = created.attribute<PersistentSearchAttribute>();
QVERIFY(!attr->isRecursive()); QVERIFY(!attr->isRecursive());
QVERIFY(!attr->isRemoteSearchEnabled()); QVERIFY(!attr->isRemoteSearchEnabled());
QCOMPARE(attr->queryCollections(), QList<qint64>{ 0 }); QCOMPARE(attr->queryCollections(), QVector<qint64>{ 0 });
const QString oldQueryString = attr->queryString(); const QString oldQueryString = attr->queryString();
// Change the attributes // Change the attributes
attr->setRecursive(true); attr->setRecursive(true);
attr->setRemoteSearchEnabled(true); attr->setRemoteSearchEnabled(true);
attr->setQueryCollections(QList<qint64>{ 1 }); attr->setQueryCollections(QVector<qint64>{ 1 });
Akonadi::SearchQuery newQuery; Akonadi::SearchQuery newQuery;
newQuery.addTerm(Akonadi::SearchTerm(QStringLiteral("plugin"), 3)); newQuery.addTerm(Akonadi::SearchTerm(QStringLiteral("plugin"), 3));
newQuery.addTerm(Akonadi::SearchTerm(QStringLiteral("resource"), 4)); newQuery.addTerm(Akonadi::SearchTerm(QStringLiteral("resource"), 4));
...@@ -123,7 +123,7 @@ void SearchJobTest::testModifySearch() ...@@ -123,7 +123,7 @@ void SearchJobTest::testModifySearch()
QVERIFY(attr->isRecursive()); QVERIFY(attr->isRecursive());
QVERIFY(attr->isRemoteSearchEnabled()); QVERIFY(attr->isRemoteSearchEnabled());
QCOMPARE(attr->queryCollections(), QList<qint64>{ 1 }); QCOMPARE(attr->queryCollections(), QVector<qint64>{ 1 });
QVERIFY(attr->queryString() != oldQueryString); QVERIFY(attr->queryString() != oldQueryString);
auto delJob = new CollectionDeleteJob(col, this); auto delJob = new CollectionDeleteJob(col, this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment