summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-03 11:26:31 +0200
committerMontel Laurent <[email protected]>2017-09-03 11:26:31 +0200
commit4d953bb8f79661e5e2bdcea77c95d8f10819ec51 (patch)
treee3de915a2f6645b13a339ae1125572e75568d301
parentd59d3b1312738c55b936c843a1d087af35cd499b (diff)
Initialize variables
-rw-r--r--korgac/alarmdialog.h20
-rw-r--r--korgac/alarmdockwindow.h10
-rw-r--r--korgac/koalarmclient.h6
-rw-r--r--src/actionmanager.cpp10
-rw-r--r--src/actionmanager.h78
-rw-r--r--src/akonadicollectionview.cpp8
-rw-r--r--src/akonadicollectionview.h28
-rw-r--r--src/calendarview.h46
-rw-r--r--src/collectiongeneralpage.h10
-rw-r--r--src/datechecker.h2
-rw-r--r--src/datenavigatorcontainer.h2
-rw-r--r--src/dialog/filtereditdialog.h12
-rw-r--r--src/dialog/koeventviewerdialog.h4
-rw-r--r--src/dialog/noteeditdialog.h8
-rw-r--r--src/dialog/searchdialog.h8
-rw-r--r--src/helper/searchcollectionhelper.h2
-rw-r--r--src/impl/korganizerifaceimpl.h2
-rw-r--r--src/interfaces/korganizer/baseview.h2
-rw-r--r--src/interfaces/korganizer/part.h2
-rw-r--r--src/kodaymatrix.h12
-rw-r--r--src/kodialogmanager.cpp4
-rw-r--r--src/kodialogmanager.h10
-rw-r--r--src/koeventpopupmenu.cpp3
-rw-r--r--src/koeventpopupmenu.h4
-rw-r--r--src/koeventview.h2
-rw-r--r--src/koglobals.h2
-rw-r--r--src/kontactplugin/korganizer/apptsummarywidget.h12
-rw-r--r--src/kontactplugin/korganizer/journalplugin.h4
-rw-r--r--src/kontactplugin/korganizer/kcmapptsummary.h6
-rw-r--r--src/kontactplugin/korganizer/korganizerplugin.h4
-rw-r--r--src/kontactplugin/korganizer/todoplugin.h4
-rw-r--r--src/kontactplugin/korganizer/todosummarywidget.h20
-rw-r--r--src/kontactplugin/specialdates/sdsummarywidget.h6
-rw-r--r--src/korganizer.h4
-rw-r--r--src/korganizer_part.h8
-rw-r--r--src/koviewmanager.cpp3
-rw-r--r--src/koviewmanager.h30
-rw-r--r--src/kowindowlist.h2
-rw-r--r--src/manageshowcollectionproperties.h2
-rw-r--r--src/prefs/koprefs.cpp2
-rw-r--r--src/prefs/koprefsdialog.cpp6
-rw-r--r--src/prefs/koprefsdialog.h10
-rw-r--r--src/views/agendaview/koagendaview.cpp4
-rw-r--r--src/views/collectionview/controller.cpp2
-rw-r--r--src/views/collectionview/controller.h8
-rw-r--r--src/views/collectionview/quickview.h4
-rw-r--r--src/views/collectionview/reparentingmodel.h2
-rw-r--r--src/views/journalview/kojournalview.h2
-rw-r--r--src/views/listview/kolistview.h4
-rw-r--r--src/views/monthview/monthview.cpp6
-rw-r--r--src/views/multiagendaview/multiagendaview.cpp4
-rw-r--r--src/views/timelineview/kotimelineview.cpp6
-rw-r--r--src/views/timespentview/kotimespentview.h2
-rw-r--r--src/views/todoview/kotodoview.h2
-rw-r--r--src/views/whatsnextview/kowhatsnextview.h2
-rw-r--r--src/widgets/kdatenavigator.h4
-rw-r--r--src/widgets/navigatorbar.h12
57 files changed, 241 insertions, 243 deletions
diff --git a/korgac/alarmdialog.h b/korgac/alarmdialog.h
index b28bf3a..a1f2a86 100644
--- a/korgac/alarmdialog.h
+++ b/korgac/alarmdialog.h
@@ -126,19 +126,19 @@ private:
void showDetails(QTreeWidgetItem *item);
Akonadi::ETMCalendar::Ptr mCalendar;
- QTreeWidget *mIncidenceTree;
- CalendarSupport::IncidenceViewer *mDetailView;
- KIdentityManagement::IdentityManager *mIdentityManager;
+ QTreeWidget *mIncidenceTree = nullptr;
+ CalendarSupport::IncidenceViewer *mDetailView = nullptr;
+ KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
QPoint mPos;
- QSpinBox *mSuspendSpin;
- KComboBox *mSuspendUnit;
+ QSpinBox *mSuspendSpin = nullptr;
+ KComboBox *mSuspendUnit = nullptr;
QTimer mSuspendTimer;
- QTreeWidgetItem *mLastItem;
- QPushButton *mUser1Button;
- QPushButton *mUser2Button;
- QPushButton *mUser3Button;
- QPushButton *mOkButton;
+ QTreeWidgetItem *mLastItem = nullptr;
+ QPushButton *mUser1Button = nullptr;
+ QPushButton *mUser2Button = nullptr;
+ QPushButton *mUser3Button = nullptr;
+ QPushButton *mOkButton = nullptr;
};
diff --git a/korgac/alarmdockwindow.h b/korgac/alarmdockwindow.h
index 58d53bd..1cb33c7 100644
--- a/korgac/alarmdockwindow.h
+++ b/korgac/alarmdockwindow.h
@@ -61,12 +61,12 @@ private:
QIcon mIconDisabled;
QString mName;
- QAction *mAlarmsEnabled;
- QAction *mAutostart;
- QAction *mSuspendAll;
- QAction *mDismissAll;
+ QAction *mAlarmsEnabled = nullptr;
+ QAction *mAutostart = nullptr;
+ QAction *mSuspendAll = nullptr;
+ QAction *mDismissAll = nullptr;
- bool mAutostartSet;
+ bool mAutostartSet = false;
};
#endif
diff --git a/korgac/koalarmclient.h b/korgac/koalarmclient.h
index c2dc462..a9512f7 100644
--- a/korgac/koalarmclient.h
+++ b/korgac/koalarmclient.h
@@ -74,14 +74,14 @@ private:
const QDateTime &dt, const QString &displayText);
void saveLastCheckTime();
- AlarmDockWindow *mDocker; // the panel icon
+ AlarmDockWindow *mDocker = nullptr; // the panel icon
Akonadi::ETMCalendar::Ptr mCalendar;
- Akonadi::EntityTreeModel *mETM;
+ Akonadi::EntityTreeModel *mETM = nullptr;
QDateTime mLastChecked;
QTimer mCheckTimer;
- AlarmDialog *mDialog;
+ AlarmDialog *mDialog = nullptr;
};
#endif
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index d8018b7..2401cd2 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -239,7 +239,7 @@ void ActionManager::createCalendarAkonadi()
void ActionManager::initActions()
{
- QAction *action;
+ QAction *action = nullptr;
/*************************** FILE MENU **********************************/
@@ -306,7 +306,7 @@ void ActionManager::initActions()
/************************** EDIT MENU *********************************/
- QAction *pasteAction;
+ QAction *pasteAction = nullptr;
Akonadi::History *history = mCalendarView->history();
if (mIsPart) {
// edit menu
@@ -1326,9 +1326,9 @@ protected:
}
return true;
}
- QAction *mShow;
- QAction *mEdit;
- QAction *mDelete;
+ QAction *mShow = nullptr;
+ QAction *mEdit = nullptr;
+ QAction *mDelete = nullptr;
};
void ActionManager::processIncidenceSelection(const Akonadi::Item &item, const QDate &date)
diff --git a/src/actionmanager.h b/src/actionmanager.h
index 35cfb1b..01699df 100644
--- a/src/actionmanager.h
+++ b/src/actionmanager.h
@@ -328,61 +328,61 @@ private:
QString mFile; // Local name of calendar file
QString mLastUrl; // URL of last loaded calendar.
- QTemporaryFile *mTempFile;
- QTimer *mAutoExportTimer; // used if calendar is to be autoexported
- QTimer *mAutoArchiveTimer; // used for the auto-archiving feature
+ QTemporaryFile *mTempFile = nullptr;
+ QTimer *mAutoExportTimer = nullptr; // used if calendar is to be autoexported
+ QTimer *mAutoArchiveTimer = nullptr; // used for the auto-archiving feature
// list of all existing KOrganizer instances
static KOWindowList *mWindowList;
- KToggleAction *mDateNavigatorShowAction;
- KToggleAction *mTodoViewShowAction;
- KToggleAction *mCollectionViewShowAction;
- KToggleAction *mEventViewerShowAction;
+ KToggleAction *mDateNavigatorShowAction = nullptr;
+ KToggleAction *mTodoViewShowAction = nullptr;
+ KToggleAction *mCollectionViewShowAction = nullptr;
+ KToggleAction *mEventViewerShowAction = nullptr;
- KToggleAction *mHideMenuBarAction;
+ KToggleAction *mHideMenuBarAction = nullptr;
- QAction *mImportAction;
+ QAction *mImportAction = nullptr;
- QAction *mNewEventAction;
- QAction *mNewTodoAction;
- QAction *mNewSubtodoAction;
- QAction *mNewJournalAction;
- QAction *mConfigureViewAction;
+ QAction *mNewEventAction = nullptr;
+ QAction *mNewTodoAction = nullptr;
+ QAction *mNewSubtodoAction = nullptr;
+ QAction *mNewJournalAction = nullptr;
+ QAction *mConfigureViewAction = nullptr;
- QAction *mShowIncidenceAction;
- QAction *mEditIncidenceAction;
- QAction *mDeleteIncidenceAction;
+ QAction *mShowIncidenceAction = nullptr;
+ QAction *mEditIncidenceAction = nullptr;
+ QAction *mDeleteIncidenceAction = nullptr;
- QAction *mCutAction;
- QAction *mCopyAction;
- QAction *mDeleteAction;
- QAction *mNextXDays;
- QAction *mPublishEvent;
- QAction *mForwardEvent;
+ QAction *mCutAction = nullptr;
+ QAction *mCopyAction = nullptr;
+ QAction *mDeleteAction = nullptr;
+ QAction *mNextXDays = nullptr;
+ QAction *mPublishEvent = nullptr;
+ QAction *mForwardEvent = nullptr;
- QAction *mSendInvitation;
- QAction *mSendCancel;
- QAction *mSendStatusUpdate;
+ QAction *mSendInvitation = nullptr;
+ QAction *mSendCancel = nullptr;
+ QAction *mSendStatusUpdate = nullptr;
- QAction *mRequestChange;
- QAction *mRequestUpdate;
+ QAction *mRequestChange = nullptr;
+ QAction *mRequestUpdate = nullptr;
- QAction *mUndoAction;
- QAction *mRedoAction;
- QMenuBar *mMenuBar;
+ QAction *mUndoAction = nullptr;
+ QAction *mRedoAction = nullptr;
+ QMenuBar *mMenuBar = nullptr;
- KSelectAction *mFilterAction;
+ KSelectAction *mFilterAction = nullptr;
- KXMLGUIClient *mGUIClient;
- KActionCollection *mACollection;
- CalendarView *mCalendarView;
- KOrg::MainWindow *mMainWindow;
+ KXMLGUIClient *mGUIClient = nullptr;
+ KActionCollection *mACollection = nullptr;
+ CalendarView *mCalendarView = nullptr;
+ KOrg::MainWindow *mMainWindow = nullptr;
bool mIsPart;
- AkonadiCollectionView *mCollectionView;
- KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mCollectionViewStateSaver;
- KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mCollectionSelectionModelStateSaver;
+ AkonadiCollectionView *mCollectionView = nullptr;
+ KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mCollectionViewStateSaver = nullptr;
+ KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mCollectionSelectionModelStateSaver = nullptr;
};
#endif
diff --git a/src/akonadicollectionview.cpp b/src/akonadicollectionview.cpp
index d57e59d..eb01b58 100644
--- a/src/akonadicollectionview.cpp
+++ b/src/akonadicollectionview.cpp
@@ -78,7 +78,7 @@
static Akonadi::EntityTreeModel *findEtm(QAbstractItemModel *model)
{
- QAbstractProxyModel *proxyModel;
+ QAbstractProxyModel *proxyModel = nullptr;
while (model) {
proxyModel = qobject_cast<QAbstractProxyModel *>(model);
if (proxyModel && proxyModel->sourceModel()) {
@@ -128,7 +128,7 @@ private Q_SLOTS:
}
private:
- QAbstractItemModel *mCheckableProxy;
+ QAbstractItemModel *mCheckableProxy = nullptr;
};
/**
@@ -236,8 +236,8 @@ private:
}
QPointer<Akonadi::ETMViewStateSaver> treeStateRestorer;
- QTreeView *mTreeView;
- bool mExpandAll;
+ QTreeView *mTreeView = nullptr;
+ bool mExpandAll = false;
QString mTreeStateConfig;
};
diff --git a/src/akonadicollectionview.h b/src/akonadicollectionview.h
index 1d92775..dfcef35 100644
--- a/src/akonadicollectionview.h
+++ b/src/akonadicollectionview.h
@@ -61,8 +61,8 @@ public:
CalendarViewExtension *create(QWidget *) override;
private:
- CalendarView *mView;
- AkonadiCollectionView *mAkonadiCollectionView;
+ CalendarView *mView = nullptr;
+ AkonadiCollectionView *mAkonadiCollectionView = nullptr;
};
class NewNodeExpander;
@@ -113,21 +113,21 @@ private Q_SLOTS:
private:
Akonadi::EntityTreeModel *entityTreeModel() const;
- Akonadi::StandardCalendarActionManager *mActionManager;
- Akonadi::EntityTreeView *mCollectionView;
- QStackedWidget *mStackedWidget;
- QAbstractProxyModel *mBaseModel;
- KCheckableProxyModel *mSelectionProxyModel;
- QAction *mAssignColor;
- QAction *mDisableColor;
- QAction *mDefaultCalendar;
- QAction *mServerSideSubscription;
+ Akonadi::StandardCalendarActionManager *mActionManager = nullptr;
+ Akonadi::EntityTreeView *mCollectionView = nullptr;
+ QStackedWidget *mStackedWidget = nullptr;
+ QAbstractProxyModel *mBaseModel = nullptr;
+ KCheckableProxyModel *mSelectionProxyModel = nullptr;
+ QAction *mAssignColor = nullptr;
+ QAction *mDisableColor = nullptr;
+ QAction *mDefaultCalendar = nullptr;
+ QAction *mServerSideSubscription = nullptr;
bool mNotSendAddRemoveSignal;
bool mWasDefaultCalendar;
bool mHasContextMenu;
- Controller *mController;
- NewNodeExpander *mNewNodeExpander;
- ManageShowCollectionProperties *mManagerShowCollectionProperties;
+ Controller *mController = nullptr;
+ NewNodeExpander *mNewNodeExpander = nullptr;
+ ManageShowCollectionProperties *mManagerShowCollectionProperties = nullptr;
};
#endif
diff --git a/src/calendarview.h b/src/calendarview.h
index 80bcd02..e1dca36 100644
--- a/src/calendarview.h
+++ b/src/calendarview.h
@@ -112,7 +112,7 @@ public:
class CalendarViewVisitor : public KCalCore::Visitor
{
public:
- CalendarViewVisitor() : mView(nullptr)
+ CalendarViewVisitor()
{
}
@@ -123,7 +123,7 @@ public:
}
protected:
- CalendarView *mView;
+ CalendarView *mView = nullptr;
};
void setCalendar(const Akonadi::ETMCalendar::Ptr &);
@@ -702,32 +702,32 @@ private:
IncidenceEditorNG::IncidenceDialog *createIncidenceEditor(
const Akonadi::Item &item, const Akonadi::Collection &collection = Akonadi::Collection());
- CalendarSupport::CalPrinter *mCalPrinter;
- Akonadi::TodoPurger *mTodoPurger;
+ CalendarSupport::CalPrinter *mCalPrinter = nullptr;
+ Akonadi::TodoPurger *mTodoPurger = nullptr;
- QSplitter *mPanner;
- QSplitter *mLeftSplitter;
- QWidget *mLeftFrame;
- QStackedWidget *mRightFrame;
- CalendarSupport::MessageWidget *mMessageWidget;
+ QSplitter *mPanner = nullptr;
+ QSplitter *mLeftSplitter = nullptr;
+ QWidget *mLeftFrame = nullptr;
+ QStackedWidget *mRightFrame = nullptr;
+ CalendarSupport::MessageWidget *mMessageWidget = nullptr;
// This navigator bar is used when in full window month view
// It has nothing to do with the date navigator
- NavigatorBar *mNavigatorBar;
+ NavigatorBar *mNavigatorBar = nullptr;
- DateNavigatorContainer *mDateNavigatorContainer;
+ DateNavigatorContainer *mDateNavigatorContainer = nullptr;
QList<CalendarViewExtension *> mExtensions;
Akonadi::ETMCalendar::Ptr mCalendar;
- DateNavigator *mDateNavigator;
- DateChecker *mDateChecker;
+ DateNavigator *mDateNavigator = nullptr;
+ DateChecker *mDateChecker = nullptr;
- QWidget *mEventViewerBox;
- CalendarSupport::IncidenceViewer *mEventViewer;
- KOViewManager *mViewManager;
- KODialogManager *mDialogManager;
+ QWidget *mEventViewerBox = nullptr;
+ CalendarSupport::IncidenceViewer *mEventViewer = nullptr;
+ KOViewManager *mViewManager = nullptr;
+ KODialogManager *mDialogManager = nullptr;
// Calendar filters
QList<KCalCore::CalFilter *> mFilters;
@@ -739,16 +739,16 @@ private:
Akonadi::Item mSelectedIncidence;
QDate mSaveDate;
- KOTodoView *mTodoList;
- Akonadi::IncidenceChanger *mChanger;
- Akonadi::ITIPHandler *mITIPHandler;
+ KOTodoView *mTodoList = nullptr;
+ Akonadi::IncidenceChanger *mChanger = nullptr;
+ Akonadi::ITIPHandler *mITIPHandler = nullptr;
QList<int> mMainSplitterSizes; // temp store for main splitter sizes while left frame is hidden
bool mSplitterSizesValid;
bool mCreatingEnabled;
- Akonadi::CalendarClipboard *mCalendarClipboard;
- KOCheckableProxyModel *mCheckableProxyModel;
- AkonadiCollectionView *mETMCollectionView;
+ Akonadi::CalendarClipboard *mCalendarClipboard = nullptr;
+ KOCheckableProxyModel *mCheckableProxyModel = nullptr;
+ AkonadiCollectionView *mETMCollectionView = nullptr;
SearchCollectionHelper mSearchCollectionHelper;
};
diff --git a/src/collectiongeneralpage.h b/src/collectiongeneralpage.h
index be0f419..7bbdb3a 100644
--- a/src/collectiongeneralpage.h
+++ b/src/collectiongeneralpage.h
@@ -48,11 +48,11 @@ public:
private:
void init(const Akonadi::Collection &collection);
- QCheckBox *mBlockAlarmsCheckBox;
- QLineEdit *mNameEdit;
- QCheckBox *mIconCheckBox;
- KIconButton *mIconButton;
- PimCommon::IncidencesForWidget *mIncidencesForComboBox;
+ QCheckBox *mBlockAlarmsCheckBox = nullptr;
+ QLineEdit *mNameEdit = nullptr;
+ QCheckBox *mIconCheckBox = nullptr;
+ KIconButton *mIconButton = nullptr;
+ PimCommon::IncidencesForWidget *mIncidencesForComboBox = nullptr;
};
AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionGeneralPageFactory, CollectionGeneralPage)
diff --git a/src/datechecker.h b/src/datechecker.h
index f5c3441..215077c 100644
--- a/src/datechecker.h
+++ b/src/datechecker.h
@@ -79,7 +79,7 @@ protected Q_SLOTS:
void passedMidnight();
private:
- QTimer *mUpdateTimer;
+ QTimer *mUpdateTimer = nullptr;
QDate mLastDayChecked;
RolloverType mUpdateRollover;
};
diff --git a/src/datenavigatorcontainer.h b/src/datenavigatorcontainer.h
index efdbc11..b1e5321 100644
--- a/src/datenavigatorcontainer.h
+++ b/src/datenavigatorcontainer.h
@@ -154,7 +154,7 @@ private:
*/
KDateNavigator *firstNavigatorForDate(const QDate &date) const;
- KDateNavigator *mNavigatorView;
+ KDateNavigator *mNavigatorView = nullptr;
Akonadi::ETMCalendar::Ptr mCalendar;
diff --git a/src/dialog/filtereditdialog.h b/src/dialog/filtereditdialog.h
index d67d797..f386130 100644
--- a/src/dialog/filtereditdialog.h
+++ b/src/dialog/filtereditdialog.h
@@ -66,9 +66,9 @@ public Q_SLOTS:
void setDialogConsistent(bool consistent);
private:
- FilterEdit *mFilterEdit;
- QPushButton *mOkButton;
- QPushButton *mApplyButton;
+ FilterEdit *mFilterEdit = nullptr;
+ QPushButton *mOkButton = nullptr;
+ QPushButton *mApplyButton = nullptr;
protected Q_SLOTS:
void slotApply();
@@ -104,9 +104,9 @@ private:
void filterSelected(KCalCore::CalFilter *f);
QString mNegativeBackground;
- QList<KCalCore::CalFilter *> *mFilters;
- KCalCore::CalFilter *mCurrent;
- KPIM::TagSelectionDialog *mCategorySelectDialog;
+ QList<KCalCore::CalFilter *> *mFilters = nullptr;
+ KCalCore::CalFilter *mCurrent = nullptr;
+ KPIM::TagSelectionDialog *mCategorySelectDialog = nullptr;
};
#endif
diff --git a/src/dialog/koeventviewerdialog.h b/src/dialog/koeventviewerdialog.h
index f05ed09..e681220 100644
--- a/src/dialog/koeventviewerdialog.h
+++ b/src/dialog/koeventviewerdialog.h
@@ -63,8 +63,8 @@ private Q_SLOTS:
void delayedDestruct();
private:
- CalendarSupport::IncidenceViewer *mEventViewer;
- QPushButton *mUser1Button;
+ CalendarSupport::IncidenceViewer *mEventViewer = nullptr;
+ QPushButton *mUser1Button = nullptr;
};
#endif
diff --git a/src/dialog/noteeditdialog.h b/src/dialog/noteeditdialog.h
index cedfc9d..91fb5eb 100644
--- a/src/dialog/noteeditdialog.h
+++ b/src/dialog/noteeditdialog.h
@@ -75,10 +75,10 @@ private:
void writeConfig();
Akonadi::Collection mCollection;
Akonadi::Item mItem;
- QLineEdit *mNoteTitle;
- QPushButton *mOkButton;
- KPIMTextEdit::RichTextEditorWidget *mNoteText;
- Akonadi::CollectionComboBox *mCollectionCombobox;
+ QLineEdit *mNoteTitle = nullptr;
+ QPushButton *mOkButton = nullptr;
+ KPIMTextEdit::RichTextEditorWidget *mNoteText = nullptr;
+ Akonadi::CollectionComboBox *mCollectionCombobox = nullptr;
};
#endif // NOTEEDITDIALOG_H
diff --git a/src/dialog/searchdialog.h b/src/dialog/searchdialog.h
index 5f429a5..37c36dd 100644
--- a/src/dialog/searchdialog.h
+++ b/src/dialog/searchdialog.h
@@ -80,11 +80,11 @@ private:
void readConfig();
void writeConfig();
- Ui::SearchDialog *m_ui;
- CalendarView *m_calendarview; // parent
+ Ui::SearchDialog *m_ui = nullptr;
+ CalendarView *m_calendarview = nullptr; // parent
Akonadi::Item::List mMatchedEvents;
- EventViews::ListView *listView;
- QPushButton *mUser1Button;
+ EventViews::ListView *listView = nullptr;
+ QPushButton *mUser1Button = nullptr;
};
#endif
diff --git a/src/helper/searchcollectionhelper.h b/src/helper/searchcollectionhelper.h
index 39864de..1a69f0f 100644
--- a/src/helper/searchcollectionhelper.h
+++ b/src/helper/searchcollectionhelper.h
@@ -56,7 +56,7 @@ private:
void updateSearchCollection(Akonadi::Collection col, KCalCore::Attendee::PartStat status, const QString &name, const QString &displayName);
private:
- KIdentityManagement::IdentityManager *mIdentityManager;
+ KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
Akonadi::Collection mOpenInvitationCollection;
Akonadi::Collection mDeclineCollection;
};
diff --git a/src/impl/korganizerifaceimpl.h b/src/impl/korganizerifaceimpl.h
index 4318cb6..74a82c5 100644
--- a/src/impl/korganizerifaceimpl.h
+++ b/src/impl/korganizerifaceimpl.h
@@ -105,7 +105,7 @@ public Q_SLOTS:
bool handleCommandLine(const QStringList &args);
private:
- ActionManager *mActionManager;
+ ActionManager *mActionManager = nullptr;
};
#endif // KORGANIZER_SHARED_H
diff --git a/src/interfaces/korganizer/baseview.h b/src/interfaces/korganizer/baseview.h
index 7faca6b..0da1956 100644
--- a/src/interfaces/korganizer/baseview.h
+++ b/src/interfaces/korganizer/baseview.h
@@ -402,7 +402,7 @@ protected Q_SLOTS:
virtual void calendarReset();
protected:
- Akonadi::IncidenceChanger *mChanger;
+ Akonadi::IncidenceChanger *mChanger = nullptr;
private:
class Private;
diff --git a/src/interfaces/korganizer/part.h b/src/interfaces/korganizer/part.h
index e07c971..e4028b5 100644
--- a/src/interfaces/korganizer/part.h
+++ b/src/interfaces/korganizer/part.h
@@ -68,7 +68,7 @@ public:
}
private:
- MainWindow *mMainWindow;
+ MainWindow *mMainWindow = nullptr;
};
class PartFactory : public KPluginFactory
diff --git a/src/kodaymatrix.h b/src/kodaymatrix.h
index a70f0ef..3a3ce18 100644
--- a/src/kodaymatrix.h
+++ b/src/kodaymatrix.h
@@ -288,11 +288,11 @@ private:
QDate mStartDate;
/** array of day labels to optimeize drawing performance. */
- QString *mDayLabels;
+ QString *mDayLabels = nullptr;
/** array of days displayed to reduce memory consumption by
subsequently calling QDate::addDays(). */
- QDate *mDays;
+ QDate *mDays = nullptr;
/** List for storing days which should be drawn using bold font. */
QList<QDate> mEvents;
@@ -329,16 +329,16 @@ private:
/**
* Indicate pending calendar changes.
*/
- bool mPendingChanges;
+ bool mPendingChanges = false;
/** Whether days with events are highlighted */
- bool mHighlightEvents;
+ bool mHighlightEvents = false;
/** Whether days with to-dos (with due date) are highlighted */
- bool mHighlightTodos;
+ bool mHighlightTodos = false;
/** Whether days with journals are highlighted */
- bool mHighlightJournals;
+ bool mHighlightJournals = false;
};
#endif
diff --git a/src/kodialogmanager.cpp b/src/kodialogmanager.cpp
index 9714f4a..bd25fa1 100644
--- a/src/kodialogmanager.cpp
+++ b/src/kodialogmanager.cpp
@@ -53,7 +53,7 @@ using namespace KOrg;
class KODialogManager::DialogManagerVisitor : public KCalCore::Visitor
{
public:
- DialogManagerVisitor() : mDialogManager(nullptr) {}
+ DialogManagerVisitor() {}
bool act(KCalCore::IncidenceBase::Ptr incidence, KODialogManager *manager)
{
@@ -62,7 +62,7 @@ public:
}
protected:
- KODialogManager *mDialogManager;
+ KODialogManager *mDialogManager = nullptr;
};
KODialogManager::KODialogManager(CalendarView *mainView)
diff --git a/src/kodialogmanager.h b/src/kodialogmanager.h
index 3614a81..22d3e45 100644
--- a/src/kodialogmanager.h
+++ b/src/kodialogmanager.h
@@ -88,12 +88,12 @@ private:
class DialogManagerVisitor;
class EditorDialogVisitor;
- CalendarView *mMainView;
- KCMultiDialog *mOptionsDialog;
+ CalendarView *mMainView = nullptr;
+ KCMultiDialog *mOptionsDialog = nullptr;
QPointer<Akonadi::TagManagementDialog> mCategoryEditDialog;
- SearchDialog *mSearchDialog;
- CalendarSupport::ArchiveDialog *mArchiveDialog;
- FilterEditDialog *mFilterEditDialog;
+ SearchDialog *mSearchDialog = nullptr;
+ CalendarSupport::ArchiveDialog *mArchiveDialog = nullptr;
+ FilterEditDialog *mFilterEditDialog = nullptr;
};
#endif
diff --git a/src/koeventpopupmenu.cpp b/src/koeventpopupmenu.cpp
index 67d2255..57521f5 100644
--- a/src/koeventpopupmenu.cpp
+++ b/src/koeventpopupmenu.cpp
@@ -83,8 +83,7 @@ KOEventPopupMenu::KOEventPopupMenu(Akonadi::ETMCalendar *calendar, QWidget *pare
this, SLOT(popupDelete())));
//------------------------------------------------------------------------
addSeparator();
- QAction *action;
- action = addAction(QIcon::fromTheme(QStringLiteral("task-new")),
+ QAction *action = addAction(QIcon::fromTheme(QStringLiteral("task-new")),
i18n("Create To-do"),
this, SLOT(createTodo()));
action->setObjectName(QStringLiteral("createtodo"));
diff --git a/src/koeventpopupmenu.h b/src/koeventpopupmenu.h
index 3e60393..ce07ed7 100644
--- a/src/koeventpopupmenu.h
+++ b/src/koeventpopupmenu.h
@@ -93,8 +93,8 @@ private:
QList<QAction *> mTodoOnlyItems;
QList<QAction *> mEventOnlyItems;
QList<QAction *> mRecurrenceItems;
- QAction *mDissociateOccurrences;
- QAction *mToggleReminder;
+ QAction *mDissociateOccurrences = nullptr;
+ QAction *mToggleReminder = nullptr;
};
#endif
diff --git a/src/koeventview.h b/src/koeventview.h
index 35e1fa4..5c1cfee 100644
--- a/src/koeventview.h
+++ b/src/koeventview.h
@@ -175,7 +175,7 @@ private:
bool mReturnPressed;
bool mTypeAhead;
- QObject *mTypeAheadReceiver;
+ QObject *mTypeAheadReceiver = nullptr;
QList<QEvent *> mTypeAheadEvents;
};
diff --git a/src/koglobals.h b/src/koglobals.h
index 96d3db9..07151e9 100644
--- a/src/koglobals.h
+++ b/src/koglobals.h
@@ -76,7 +76,7 @@ protected:
KOGlobals();
private:
- KHolidays::HolidayRegion *mHolidays;
+ KHolidays::HolidayRegion *mHolidays = nullptr;
};
#endif
diff --git a/src/kontactplugin/korganizer/apptsummarywidget.h b/src/kontactplugin/korganizer/apptsummarywidget.h
index e8c5f81..caf7136 100644
--- a/src/kontactplugin/korganizer/apptsummarywidget.h
+++ b/src/kontactplugin/korganizer/apptsummarywidget.h
@@ -73,15 +73,15 @@ private:
void dateDiff(const QDate &date, int &days);
Akonadi::ETMCalendar::Ptr mCalendar;
- Akonadi::IncidenceChanger *mChanger;
+ Akonadi::IncidenceChanger *mChanger = nullptr;
- QGridLayout *mLayout;
+ QGridLayout *mLayout = nullptr;
QList<QLabel *> mLabels;
- KOrganizerPlugin *mPlugin;
+ KOrganizerPlugin *mPlugin = nullptr;
int mDaysAhead;
- bool mShowBirthdaysFromCal;
- bool mShowAnniversariesFromCal;
- bool mShowMineOnly;
+ bool mShowBirthdaysFromCal = false;
+ bool mShowAnniversariesFromCal = false;
+ bool mShowMineOnly = false;
};
#endif
diff --git a/src/kontactplugin/korganizer/journalplugin.h b/src/kontactplugin/korganizer/journalplugin.h
index e8faf1a..a5adb7e 100644
--- a/src/kontactplugin/korganizer/journalplugin.h
+++ b/src/kontactplugin/korganizer/journalplugin.h
@@ -60,8 +60,8 @@ private Q_SLOTS:
void slotNewJournal();
private:
- OrgKdeKorganizerCalendarInterface *mIface;
- KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
+ OrgKdeKorganizerCalendarInterface *mIface = nullptr;
+ KontactInterface::UniqueAppWatcher *mUniqueAppWatcher = nullptr;
};
#endif
diff --git a/src/kontactplugin/korganizer/kcmapptsummary.h b/src/kontactplugin/korganizer/kcmapptsummary.h
index 52cde05..daa4732 100644
--- a/src/kontactplugin/korganizer/kcmapptsummary.h
+++ b/src/kontactplugin/korganizer/kcmapptsummary.h
@@ -51,9 +51,9 @@ private Q_SLOTS:
void customDaysChanged(int value);
private:
- QButtonGroup *mDaysButtonGroup;
- QButtonGroup *mShowButtonGroup;
- QButtonGroup *mGroupwareButtonGroup;
+ QButtonGroup *mDaysButtonGroup = nullptr;
+ QButtonGroup *mShowButtonGroup = nullptr;
+ QButtonGroup *mGroupwareButtonGroup = nullptr;
};
#endif
diff --git a/src/kontactplugin/korganizer/korganizerplugin.h b/src/kontactplugin/korganizer/korganizerplugin.h
index 7ea39f8..ba33e75 100644
--- a/src/kontactplugin/korganizer/korganizerplugin.h
+++ b/src/kontactplugin/korganizer/korganizerplugin.h
@@ -67,8 +67,8 @@ private Q_SLOTS:
void slotNewEvent();
private:
- OrgKdeKorganizerCalendarInterface *mIface;
- KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
+ OrgKdeKorganizerCalendarInterface *mIface = nullptr;
+ KontactInterface::UniqueAppWatcher *mUniqueAppWatcher = nullptr;
};
#endif
diff --git a/src/kontactplugin/korganizer/todoplugin.h b/src/kontactplugin/korganizer/todoplugin.h
index 31f779c..2da54d2 100644
--- a/src/kontactplugin/korganizer/todoplugin.h
+++ b/src/kontactplugin/korganizer/todoplugin.h
@@ -65,8 +65,8 @@ private Q_SLOTS:
void slotNewTodo();
private:
- OrgKdeKorganizerCalendarInterface *mIface;
- KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
+ OrgKdeKorganizerCalendarInterface *mIface = nullptr;
+ KontactInterface::UniqueAppWatcher *mUniqueAppWatcher = nullptr;
};
#endif
diff --git a/src/kontactplugin/korganizer/todosummarywidget.h b/src/kontactplugin/korganizer/todosummarywidget.h
index 610197d..eeeed37 100644
--- a/src/kontactplugin/korganizer/todosummarywidget.h
+++ b/src/kontactplugin/korganizer/todosummarywidget.h
@@ -74,20 +74,20 @@ private Q_SLOTS:
void completeTodo(Akonadi::Item::Id id);
private:
- TodoPlugin *mPlugin;
- QGridLayout *mLayout;
+ TodoPlugin *mPlugin = nullptr;
+ QGridLayout *mLayout = nullptr;
- bool mDaysToGo;
- bool mHideInProgress;
- bool mHideOverdue;
- bool mHideCompleted;
- bool mHideOpenEnded;
- bool mHideNotStarted;
- bool mShowMineOnly;
+ bool mDaysToGo = false;
+ bool mHideInProgress = false;
+ bool mHideOverdue = false;
+ bool mHideCompleted = false;
+ bool mHideOpenEnded = false;
+ bool mHideNotStarted = false;
+ bool mShowMineOnly = false;
QList<QLabel *> mLabels;
Akonadi::ETMCalendar::Ptr mCalendar;
- Akonadi::IncidenceChanger *mChanger;
+ Akonadi::IncidenceChanger *mChanger = nullptr;
/**
Test if the To-do starts today.
diff --git a/src/kontactplugin/specialdates/sdsummarywidget.h b/src/kontactplugin/specialdates/sdsummarywidget.h
index 0bd0090..f34457c 100644
--- a/src/kontactplugin/specialdates/sdsummarywidget.h
+++ b/src/kontactplugin/specialdates/sdsummarywidget.h
@@ -81,9 +81,9 @@ private:
Akonadi::ETMCalendar::Ptr mCalendar;
- QGridLayout *mLayout;
+ QGridLayout *mLayout = nullptr;
QList<QLabel *> mLabels;
- KontactInterface::Plugin *mPlugin;
+ KontactInterface::Plugin *mPlugin = nullptr;
int mDaysAhead;
bool mShowBirthdaysFromKAB;
@@ -97,7 +97,7 @@ private:
QList<SDEntry> mDates;
void createLabels();
- KHolidays::HolidayRegion *mHolidays;
+ KHolidays::HolidayRegion *mHolidays = nullptr;
};
#endif
diff --git a/src/korganizer.h b/src/korganizer.h
index 337710f..30ec868 100644
--- a/src/korganizer.h
+++ b/src/korganizer.h
@@ -130,10 +130,10 @@ protected:
void readProperties(const KConfigGroup &) override;
private:
- CalendarView *mCalendarView; // Main view widget
+ CalendarView *mCalendarView = nullptr; // Main view widget
KOrg::Part::List mParts; // List of parts loaded
- ActionManager *mActionManager;
+ ActionManager *mActionManager = nullptr;
};
#endif
diff --git a/src/korganizer_part.h b/src/korganizer_part.h
index 81c5177..eb0ed23 100644
--- a/src/korganizer_part.h
+++ b/src/korganizer_part.h
@@ -96,10 +96,10 @@ protected:
bool openFile() override;
private:
- CalendarView *mView;
- ActionManager *mActionManager;
- KParts::StatusBarExtension *mStatusBarExtension;
- QWidget *mTopLevelWidget;
+ CalendarView *mView = nullptr;
+ ActionManager *mActionManager = nullptr;
+ KParts::StatusBarExtension *mStatusBarExtension = nullptr;
+ QWidget *mTopLevelWidget = nullptr;
Q_SIGNALS:
void textChanged(const QString &);
diff --git a/src/koviewmanager.cpp b/src/koviewmanager.cpp
index 0500c71..303ab9e 100644
--- a/src/koviewmanager.cpp
+++ b/src/koviewmanager.cpp
@@ -229,8 +229,7 @@ void KOViewManager::goMenu(bool enable)
if (w) {
KActionCollection *ac = w->getActionCollection();
if (ac) {
- QAction *action;
- action = ac->action(QStringLiteral("go_today"));
+ QAction *action = ac->action(QStringLiteral("go_today"));
if (action) {
action->setEnabled(enable);
}
diff --git a/src/koviewmanager.h b/src/koviewmanager.h
index cd077ed..71973e5 100644
--- a/src/koviewmanager.h
+++ b/src/koviewmanager.h
@@ -187,21 +187,21 @@ private Q_SLOTS:
private:
QWidget *widgetForView(KOrg::BaseView *) const;
QList<KOrg::BaseView *> mViews;
- CalendarView *mMainView;
-
- KOAgendaView *mAgendaView;
- KOrg::MultiAgendaView *mAgendaSideBySideView;
- KOListView *mListView;
- KOTodoView *mTodoView;
- KOWhatsNextView *mWhatsNextView;
- KOJournalView *mJournalView;
- KOTimelineView *mTimelineView;
- KOTimeSpentView *mTimeSpentView;
- KOrg::MonthView *mMonthView;
- KOrg::BaseView *mCurrentView;
-
- KOrg::BaseView *mLastEventView;
- QTabWidget *mAgendaViewTabs;
+ CalendarView *mMainView = nullptr;
+
+ KOAgendaView *mAgendaView = nullptr;
+ KOrg::MultiAgendaView *mAgendaSideBySideView = nullptr;
+ KOListView *mListView = nullptr;
+ KOTodoView *mTodoView = nullptr;
+ KOWhatsNextView *mWhatsNextView = nullptr;
+ KOJournalView *mJournalView = nullptr;
+ KOTimelineView *mTimelineView = nullptr;
+ KOTimeSpentView *mTimeSpentView = nullptr;
+ KOrg::MonthView *mMonthView = nullptr;
+ KOrg::BaseView *mCurrentView = nullptr;
+
+ KOrg::BaseView *mLastEventView = nullptr;
+ QTabWidget *mAgendaViewTabs = nullptr;
int mAgendaViewTabIndex;
RangeMode mRangeMode;
diff --git a/src/kowindowlist.h b/src/kowindowlist.h
index c711432..53dbefe 100644
--- a/src/kowindowlist.h
+++ b/src/kowindowlist.h
@@ -82,7 +82,7 @@ public Q_SLOTS:
private:
QList<KOrg::MainWindow *> mWindowList; // list of all existing KOrganizer instances
- KOrg::MainWindow *mDefaultWindow;
+ KOrg::MainWindow *mDefaultWindow = nullptr;
};
#endif
diff --git a/src/manageshowcollectionproperties.h b/src/manageshowcollectionproperties.h
index de1d985..384f124 100644
--- a/src/manageshowcollectionproperties.h
+++ b/src/manageshowcollectionproperties.h
@@ -45,7 +45,7 @@ private:
void slotCollectionPropertiesFinished(KJob *job);
QHash<Akonadi::Collection::Id, QPointer<Akonadi::CollectionPropertiesDialog> > mHashDialogBox;
QStringList mPages;
- AkonadiCollectionView *mCollectionView;
+ AkonadiCollectionView *mCollectionView = nullptr;
};
#endif // MANAGESHOWCOLLECTIONPROPERTIES_H
diff --git a/src/prefs/koprefs.cpp b/src/prefs/koprefs.cpp
index c4ff13e..332aa37 100644
--- a/src/prefs/koprefs.cpp
+++ b/src/prefs/koprefs.cpp
@@ -37,7 +37,7 @@ public:
{
delete prefs;
}
- KOPrefs *prefs;
+ KOPrefs *prefs = nullptr;
};
Q_GLOBAL_STATIC(KOPrefsPrivate, sInstance)
diff --git a/src/prefs/koprefsdialog.cpp b/src/prefs/koprefsdialog.cpp
index 335c406..3103c1b 100644
--- a/src/prefs/koprefsdialog.cpp
+++ b/src/prefs/koprefsdialog.cpp
@@ -479,9 +479,9 @@ protected:
private:
QStringList tzonenames;
- KComboBox *mHolidayCombo;
- QSpinBox *mReminderTimeSpin;
- KComboBox *mReminderUnitsCombo;
+ KComboBox *mHolidayCombo = nullptr;
+ QSpinBox *mReminderTimeSpin = nullptr;
+ KComboBox *mReminderUnitsCombo = nullptr;
QCheckBox *mWorkDays[7];
};
diff --git a/src/prefs/koprefsdialog.h b/src/prefs/koprefsdialog.h
index a0b4a93..3f907cb 100644
--- a/src/prefs/koprefsdialog.h
+++ b/src/prefs/koprefsdialog.h
@@ -57,7 +57,7 @@ protected Q_SLOTS:
void toggleEmailSettings(bool on);
private:
- QWidget *mUserEmailSettings;
+ QWidget *mUserEmailSettings = nullptr;
};
class KCM_KORGANIZER_EXPORT KOPrefsDialogColorsAndFonts : public KPIM::KPrefsModule
@@ -80,12 +80,12 @@ protected Q_SLOTS:
void updateResourceColor();
private:
- KComboBox *mCategoryCombo;
- KColorButton *mCategoryButton;
+ KComboBox *mCategoryCombo = nullptr;
+ KColorButton *mCategoryButton = nullptr;
QHash<QString, QColor> mCategoryDict;
- Akonadi::CollectionComboBox *mResourceCombo;
- KColorButton *mResourceButton;
+ Akonadi::CollectionComboBox *mResourceCombo = nullptr;
+ KColorButton *mResourceButton = nullptr;
QHash<QString, QColor> mResourceDict;
};
diff --git a/src/views/agendaview/koagendaview.cpp b/src/views/agendaview/koagendaview.cpp
index c0a328b..e5e79be 100644
--- a/src/views/agendaview/koagendaview.cpp
+++ b/src/views/agendaview/koagendaview.cpp
@@ -50,8 +50,8 @@ public:
delete mPopup;
}
- EventViews::AgendaView *mAgendaView;
- KOEventPopupMenu *mPopup;
+ EventViews::AgendaView *mAgendaView = nullptr;
+ KOEventPopupMenu *mPopup = nullptr;
private:
KOAgendaView *const q;
diff --git a/src/views/collectionview/controller.cpp b/src/views/collectionview/controller.cpp
index 2b35755..83669e3 100644
--- a/src/views/collectionview/controller.cpp
+++ b/src/views/collectionview/controller.cpp
@@ -368,7 +368,7 @@ void Controller::onPersonsFound(KJob *job)
static Akonadi::EntityTreeModel *findEtm(QAbstractItemModel *model)
{
- QAbstractProxyModel *proxyModel;
+ QAbstractProxyModel *proxyModel = nullptr;
while (model) {
proxyModel = qobject_cast<QAbstractProxyModel *>(model);
if (proxyModel && proxyModel->sourceModel()) {
diff --git a/src/views/collectionview/controller.h b/src/views/collectionview/controller.h
index a65eed9..b902ca4 100644
--- a/src/views/collectionview/controller.h
+++ b/src/views/collectionview/controller.h
@@ -167,10 +167,10 @@ private Q_SLOTS:
void onPersonCollectionsFetched(KJob *job);
private:
- ReparentingModel *mPersonModel;
- ReparentingModel *mSearchModel;
- KPIM::CollectionSearchJob *mCollectionSearchJob;
- KPIM::PersonSearchJob *mPersonSearchJob;
+ ReparentingModel *mPersonModel = nullptr;
+ ReparentingModel *mSearchModel = nullptr;
+ KPIM::CollectionSearchJob *mCollectionSearchJob = nullptr;
+ KPIM::PersonSearchJob *mPersonSearchJob = nullptr;
};
#endif
diff --git a/src/views/collectionview/quickview.h b/src/views/collectionview/quickview.h
index f641013..9bcd16f 100644
--- a/src/views/collectionview/quickview.h
+++ b/src/views/collectionview/quickview.h
@@ -55,8 +55,8 @@ private:
void readConfig();
void writeConfig();
- Ui_quickview *mUi;
- EventViews::AgendaView *mAgendaView;
+ Ui_quickview *mUi = nullptr;
+ EventViews::AgendaView *mAgendaView = nullptr;
KPIM::Person mPerson;
Akonadi::Collection mCollection;
int mDayRange;
diff --git a/src/views/collectionview/reparentingmodel.h b/src/views/collectionview/reparentingmodel.h
index 350c6bc..0adfa3b 100644
--- a/src/views/collectionview/reparentingmodel.h
+++ b/src/views/collectionview/reparentingmodel.h
@@ -61,7 +61,7 @@ public:
QPersistentModelIndex sourceIndex;
QVector<Ptr> children;
- Node *parent;
+ Node *parent = nullptr;
ReparentingModel &personModel;
bool mIsSourceNode;
};
diff --git a/src/views/journalview/kojournalview.h b/src/views/journalview/kojournalview.h
index fc9d0ed..c55adbf 100644
--- a/src/views/journalview/kojournalview.h
+++ b/src/views/journalview/kojournalview.h
@@ -75,7 +75,7 @@ public Q_SLOTS:
void printJournal(const KCalCore::Journal::Ptr &journal, bool preview);
private:
- EventViews::JournalView *mJournalView;
+ EventViews::JournalView *mJournalView = nullptr;
};
#endif
diff --git a/src/views/listview/kolistview.h b/src/views/listview/kolistview.h
index 25bd284..b28006f 100644
--- a/src/views/listview/kolistview.h
+++ b/src/views/listview/kolistview.h
@@ -86,8 +86,8 @@ public Q_SLOTS:
void popupMenu(const QPoint &);
private:
- KOEventPopupMenu *mPopupMenu;
- EventViews::ListView *mListView;
+ KOEventPopupMenu *mPopupMenu = nullptr;
+ EventViews::ListView *mListView = nullptr;
};
#endif
diff --git a/src/views/monthview/monthview.cpp b/src/views/monthview/monthview.cpp
index 1888eb8..3320bfa 100644
--- a/src/views/monthview/monthview.cpp
+++ b/src/views/monthview/monthview.cpp
@@ -46,11 +46,11 @@ public:
mPopup = q->eventPopup();
}
- EventViews::MonthView *mMonthView;
- KOEventPopupMenu *mPopup;
+ EventViews::MonthView *mMonthView = nullptr;
+ KOEventPopupMenu *mPopup = nullptr;
private:
- MonthView *q;
+ MonthView *q = nullptr;
};
MonthView::MonthView(QWidget *parent)
diff --git a/src/views/multiagendaview/multiagendaview.cpp b/src/views/multiagendaview/multiagendaview.cpp
index 464ad7f..b26e49c 100644
--- a/src/views/multiagendaview/multiagendaview.cpp
+++ b/src/views/multiagendaview/multiagendaview.cpp
@@ -62,8 +62,8 @@ public:
mPopup = q->eventPopup();
}
- EventViews::MultiAgendaView *mMultiAgendaView;
- KOEventPopupMenu *mPopup;
+ EventViews::MultiAgendaView *mMultiAgendaView = nullptr;
+ KOEventPopupMenu *mPopup = nullptr;
private:
MultiAgendaView *const q;
diff --git a/src/views/timelineview/kotimelineview.cpp b/src/views/timelineview/kotimelineview.cpp
index 5cb730e..e5c7626 100644
--- a/src/views/timelineview/kotimelineview.cpp
+++ b/src/views/timelineview/kotimelineview.cpp
@@ -47,11 +47,11 @@ public:
{
delete mEventPopup;
}
- KOEventPopupMenu *mEventPopup;
- EventViews::TimelineView *mTimeLineView;
+ KOEventPopupMenu *mEventPopup = nullptr;
+ EventViews::TimelineView *mTimeLineView = nullptr;
private:
- KOTimelineView *mParent;
+ KOTimelineView *mParent = nullptr;
};
KOTimelineView::KOTimelineView(QWidget *parent)
diff --git a/src/views/timespentview/kotimespentview.h b/src/views/timespentview/kotimespentview.h
index 25ad3f0..34484a2 100644
--- a/src/views/timespentview/kotimespentview.h
+++ b/src/views/timespentview/kotimespentview.h
@@ -65,7 +65,7 @@ public Q_SLOTS:
CalendarSupport::CalPrinterBase::PrintType printType() const override;
private:
- EventViews::TimeSpentView *mView;
+ EventViews::TimeSpentView *mView = nullptr;
};
#endif
diff --git a/src/views/todoview/kotodoview.h b/src/views/todoview/kotodoview.h
index c560cc9..d2c4386 100644
--- a/src/views/todoview/kotodoview.h
+++ b/src/views/todoview/kotodoview.h
@@ -93,7 +93,7 @@ Q_SIGNALS:
void fullViewChanged(bool enabled);
private:
- EventViews::TodoView *mView;
+ EventViews::TodoView *mView = nullptr;
};
#endif /*KOTODOVIEW_H*/
diff --git a/src/views/whatsnextview/kowhatsnextview.h b/src/views/whatsnextview/kowhatsnextview.h
index 25a405d..2488f7b 100644
--- a/src/views/whatsnextview/kowhatsnextview.h
+++ b/src/views/whatsnextview/kowhatsnextview.h
@@ -60,7 +60,7 @@ public Q_SLOTS:
void changeIncidenceDisplay(const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType) override;
private:
- EventViews::WhatsNextView *mView;
+ EventViews::WhatsNextView *mView = nullptr;
};
#endif
diff --git a/src/widgets/kdatenavigator.h b/src/widgets/kdatenavigator.h
index 6b50f66..11f1183 100644
--- a/src/widgets/kdatenavigator.h
+++ b/src/widgets/kdatenavigator.h
@@ -120,12 +120,12 @@ protected:
private:
void selectMonthHelper(int monthDifference);
- NavigatorBar *mNavigatorBar;
+ NavigatorBar *mNavigatorBar = nullptr;
QLabel *mHeadings[ 7 ];
QLabel *mWeeknos[ 7 ];
- KODayMatrix *mDayMatrix;
+ KODayMatrix *mDayMatrix = nullptr;
KCalCore::DateList mSelectedDates;
QDate mBaseDate;
diff --git a/src/widgets/navigatorbar.h b/src/widgets/navigatorbar.h
index 3233cf2..fb17ddb 100644
--- a/src/widgets/navigatorbar.h
+++ b/src/widgets/navigatorbar.h
@@ -62,12 +62,12 @@ private Q_SLOTS:
private:
QDate mDate;
- QToolButton *mPrevYear;
- QToolButton *mPrevMonth;
- QToolButton *mMonth;
- QToolButton *mYear;
- QToolButton *mNextMonth;
- QToolButton *mNextYear;
+ QToolButton *mPrevYear = nullptr;
+ QToolButton *mPrevMonth = nullptr;
+ QToolButton *mMonth = nullptr;
+ QToolButton *mYear = nullptr;
+ QToolButton *mNextMonth = nullptr;
+ QToolButton *mNextYear = nullptr;
};
#endif