Commit 8af20c62 authored by Damien Caliste's avatar Damien Caliste

Raise ambiguity in ICalFormat::toString() in tests

For some reason, CI had trouble to compile toString(calendar),
making toString(KCalendarCore::MemoryCalendar::Ptr&) and
toString(const KCalendarCore::Incidence::Ptr&) ambiguous.
Add the optional argument to the first call so the ambiguity
is raised.
parent c5d7bc89
......@@ -65,7 +65,7 @@ void ICalFormatTest::testDeserializeSerialize()
Recurrence *recur = parent->recurrence();
QVERIFY(recur->recurs());
QCOMPARE(recur->duration(), 4);
QCOMPARE(recur->recurrenceType(), Recurrence::rDaily);
QCOMPARE(recur->recurrenceType(), static_cast<ushort>(Recurrence::rDaily));
Incidence::Ptr occurrence = calendar->incidence(uid, start.addDays(1));
QVERIFY(occurrence);
......@@ -78,7 +78,7 @@ void ICalFormatTest::testDeserializeSerialize()
QVERIFY(occurrence->hasRecurrenceId());
QCOMPARE(occurrence->recurrenceId(), start.addDays(1));
const QString serialization = format.toString(calendar);
const QString serialization = format.toString(calendar, QString());
QVERIFY(!serialization.isEmpty());
MemoryCalendar::Ptr check = MemoryCalendar::Ptr(new MemoryCalendar(QTimeZone::utc()));
QVERIFY(format.fromString(check, serialization));
......
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