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

initialize pointer

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