Commit 66a72dab authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent d0adea35
...@@ -117,7 +117,7 @@ void UnitTestBase::compareCalendars(const KCalendarCore::Calendar::Ptr &expected ...@@ -117,7 +117,7 @@ void UnitTestBase::compareCalendars(const KCalendarCore::Calendar::Ptr &expected
const Incidence::List expectedIncidences = expectedCalendar->incidences(); const Incidence::List expectedIncidences = expectedCalendar->incidences();
// First, replace the randomly generated UIDs with the UID that came in the invitation e-mail... // First, replace the randomly generated UIDs with the UID that came in the invitation e-mail...
for (const KCalendarCore::Incidence::Ptr &incidence : incidences) { for (const KCalendarCore::Incidence::Ptr &incidence : qAsConst(incidences)) {
incidence->setUid(incidence->schedulingID()); incidence->setUid(incidence->schedulingID());
qDebug() << "We have incidece with uid=" << incidence->uid() qDebug() << "We have incidece with uid=" << incidence->uid()
<< "; instanceidentifier=" << incidence->instanceIdentifier(); << "; instanceidentifier=" << incidence->instanceIdentifier();
......
...@@ -49,7 +49,7 @@ class Change : public QObject ...@@ -49,7 +49,7 @@ class Change : public QObject
Q_OBJECT Q_OBJECT
public: public:
typedef QSharedPointer<Change> Ptr; typedef QSharedPointer<Change> Ptr;
typedef QList<Ptr> List; typedef QVector<Ptr> List;
Change(IncidenceChanger *incidenceChanger, int changeId, IncidenceChanger::ChangeType changeType, uint operationId, QWidget *parent) Change(IncidenceChanger *incidenceChanger, int changeId, IncidenceChanger::ChangeType changeType, uint operationId, QWidget *parent)
: id(changeId) : id(changeId)
, type(changeType) , type(changeType)
......
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