Commit 80609967 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_NULLPTR

parent 2784bb3a
......@@ -64,7 +64,7 @@ class CalendarMigrator : public QObject
void calendarCreated(CalendarCreator*);
private:
CalendarMigrator(QObject* parent = 0);
CalendarMigrator(QObject* parent = Q_NULLPTR);
void migrateOrCreate();
void createDefaultResources();
template <class Interface> static bool updateStorageFormat(const Akonadi::AgentInstance&, QString& errorMessage, QObject* parent);
......
......@@ -78,7 +78,7 @@ class CollectionCheckListModel : public KCheckableProxyModel
{
Q_OBJECT
public:
explicit CollectionCheckListModel(CalEvent::Type, QObject* parent = 0);
explicit CollectionCheckListModel(CalEvent::Type, QObject* parent = Q_NULLPTR);
~CollectionCheckListModel();
Akonadi::Collection collection(int row) const;
Akonadi::Collection collection(const QModelIndex&) const;
......
......@@ -72,7 +72,7 @@ class EventListDelegate : public QItemDelegate
{
Q_OBJECT
public:
explicit EventListDelegate(EventListView* parent = 0) : QItemDelegate(parent) {}
explicit EventListDelegate(EventListView* parent = Q_NULLPTR) : QItemDelegate(parent) {}
virtual QWidget* createEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const Q_DECL_OVERRIDE { return 0; }
virtual bool editorEvent(QEvent*, QAbstractItemModel*, const QStyleOptionViewItem&, const QModelIndex&);
virtual void edit(KAEvent*, EventListView*) = 0;
......
......@@ -93,7 +93,7 @@ class AlarmListModel : public ItemListModel
ColumnCount
};
explicit AlarmListModel(QObject* parent = 0);
explicit AlarmListModel(QObject* parent = Q_NULLPTR);
~AlarmListModel();
/** Return the model containing all active and archived alarms. */
......@@ -139,7 +139,7 @@ class TemplateListModel : public ItemListModel
ColumnCount
};
explicit TemplateListModel(QObject* parent = 0);
explicit TemplateListModel(QObject* parent = Q_NULLPTR);
~TemplateListModel();
/** Return the model containing all alarm templates. */
......
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