Commit 3223fb24 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent be93bc88
......@@ -366,7 +366,7 @@ private Q_SLOTS:
fetchJob->fetchScope().fetchFullPayload();
AKVERIFYEXEC(fetchJob);
QVERIFY(fetchJob->items().count() == 1);
Item fetchedItem = fetchJob->items().first();
Item fetchedItem = fetchJob->items().constFirst();
QVERIFY(fetchedItem.isValid());
QVERIFY(fetchedItem.hasPayload<KCalCore::Incidence::Ptr>());
Incidence::Ptr incidence = fetchedItem.payload<KCalCore::Incidence::Ptr>();
......@@ -409,7 +409,7 @@ private Q_SLOTS:
fetchJob->fetchScope().fetchFullPayload();
AKVERIFYEXEC(fetchJob);
QVERIFY(fetchJob->items().count() == 1);
Item fetchedItem = fetchJob->items().first();
Item fetchedItem = fetchJob->items().constFirst();
QVERIFY(fetchedItem.isValid());
QVERIFY(fetchedItem.hasPayload<KCalCore::Incidence::Ptr>());
Incidence::Ptr incidence2 = fetchedItem.payload<KCalCore::Incidence::Ptr>();
......@@ -563,7 +563,7 @@ private Q_SLOTS:
fetchJob->fetchScope().fetchFullPayload();
AKVERIFYEXEC(fetchJob);
QVERIFY(fetchJob->items().count() == 1);
Item fetchedItem = fetchJob->items().first();
Item fetchedItem = fetchJob->items().constFirst();
QVERIFY(fetchedItem.isValid());
QVERIFY(fetchedItem.hasPayload<KCalCore::Event::Ptr>());
......@@ -1026,11 +1026,11 @@ private Q_SLOTS:
fJob->fetchScope().fetchFullPayload();
AKVERIFYEXEC(fJob);
QCOMPARE(fJob->items().count(), 1);
QVERIFY(fJob->items().first().isValid());
QVERIFY(fJob->items().first().hasPayload());
QVERIFY(fJob->items().first().hasPayload<KCalCore::Incidence::Ptr>());
QVERIFY(fJob->items().constFirst().isValid());
QVERIFY(fJob->items().constFirst().hasPayload());
QVERIFY(fJob->items().constFirst().hasPayload<KCalCore::Incidence::Ptr>());
QCOMPARE(item.payload<KCalCore::Incidence::Ptr>()->uid(),
fJob->items().first().payload<KCalCore::Incidence::Ptr>()->uid());
fJob->items().constFirst().payload<KCalCore::Incidence::Ptr>()->uid());
}
break;
case IncidenceChanger::ChangeTypeDelete:
......
......@@ -502,7 +502,7 @@ Akonadi::Item::List CalendarBase::itemList(const KCalCore::Incidence::List &inci
return items;
}
KCalCore::Incidence::List CalendarBase::childIncidences(const Akonadi::Item::Id &parentId) const
KCalCore::Incidence::List CalendarBase::childIncidences(Akonadi::Item::Id parentId) const
{
Q_D(const CalendarBase);
KCalCore::Incidence::List childs;
......
......@@ -105,7 +105,7 @@ public:
* Only the direct childs are returned
* @param parentId identifier of the parent item
*/
KCalCore::Incidence::List childIncidences(const Akonadi::Item::Id &parentId) const;
KCalCore::Incidence::List childIncidences(Item::Id parentId) const;
/**
* Returns the child items of the parent identified by @p parentUid.
......
Supports Markdown
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