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

initialize pointer

parent e3b3610e
......@@ -250,7 +250,7 @@ public:
double mGridSpacingY;
double mDesiredGridSpacingY;
Akonadi::IncidenceChanger *mChanger;
Akonadi::IncidenceChanger *mChanger = nullptr;
// size of border, where mouse action will resize the AgendaItem
int mResizeBorderWidth;
......@@ -269,7 +269,7 @@ public:
// Working Hour coordiantes
bool mWorkingHoursEnable;
QVector<bool> *mHolidayMask;
QVector<bool> *mHolidayMask = nullptr;
int mWorkingHoursYTop;
int mWorkingHoursYBottom;
......@@ -296,7 +296,7 @@ public:
QString mSelectedId;
// The Marcus Bains Line widget.
MarcusBains *mMarcusBains;
MarcusBains *mMarcusBains = nullptr;
MouseActionType mActionType;
......
......@@ -350,7 +350,7 @@ public:
Agenda *agenda() const;
private:
Agenda *mAgenda;
Agenda *mAgenda = nullptr;
};
......
......@@ -277,7 +277,7 @@ protected:
void endMovePrivate();
// Variables to remember start position
MultiItemInfo *mStartMoveInfo;
MultiItemInfo *mStartMoveInfo = nullptr;
//Color of the resource
QColor mResourceColor;
......@@ -294,7 +294,7 @@ private:
int mCellXLeft, mCellXRight;
int mCellYTop, mCellYBottom;
EventView *mEventView;
EventView *mEventView = nullptr;
MultiViewCalendar::Ptr mCalendar;
KCalCore::Incidence::Ptr mIncidence;
KDateTime mOccurrenceDateTime;
......@@ -312,7 +312,7 @@ private:
int mItemCount;
// Multi item pointers
MultiItemInfo *mMultiItemInfo;
MultiItemInfo *mMultiItemInfo = nullptr;
QList<AgendaItem::QPtr> mConflictItems;
......
......@@ -148,7 +148,7 @@ private:
QDate mDate;
QMap<Akonadi::Item::Id, JournalFrame *> mEntries;
Akonadi::IncidenceChanger *mChanger;
Akonadi::IncidenceChanger *mChanger = nullptr;
};
}
......
......@@ -313,7 +313,7 @@ private:
QPixmap mReplyPixmap;
QPixmap mHolidayPixmap;
QBasicTimer repeatTimer;
ScrollIndicator *mCurrentIndicator;
ScrollIndicator *mCurrentIndicator = nullptr;
friend class MonthGraphicsView;
};
......@@ -342,8 +342,8 @@ protected:
void resizeEvent(QResizeEvent *) override;
private:
MonthScene *mScene;
MonthView *mMonthView;
MonthScene *mScene = nullptr;
MonthView *mMonthView = nullptr;
};
}
......
......@@ -269,7 +269,7 @@ public:
public:
BaseConfig mBaseConfig;
KCoreConfigSkeleton *mAppConfig;
KCoreConfigSkeleton *mAppConfig = nullptr;
private:
Prefs *q;
......
......@@ -58,7 +58,7 @@ struct SourceModelIndex {
int r, c;
void *p;
const QAbstractItemModel *m;
const QAbstractItemModel *m = nullptr;
};
static bool isDueToday(const KCalCore::Todo::Ptr &todo)
......
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