Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 921b19a9 authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer

parent deb86ad7
......@@ -59,7 +59,7 @@ private Q_SLOTS:
void saveSize();
private:
KontactInterface::Core *mCore;
KontactInterface::Core *mCore = nullptr;
};
}
......
......@@ -165,7 +165,7 @@ public:
private:
QList<KontactInterface::Plugin *> pluginList;
Navigator *mNavigator;
Navigator *mNavigator = nullptr;
};
class SortFilterProxyModel
......@@ -237,7 +237,7 @@ public:
}
private:
Navigator *mNavigator;
Navigator *mNavigator = nullptr;
};
}
......
......@@ -96,21 +96,21 @@ private Q_SLOTS:
private:
void setHelpText(QAction *act, const QString &text);
SidePaneBase *mSidePane;
MainWindow *mMainWindow;
Model *mModel;
SidePaneBase *mSidePane = nullptr;
MainWindow *mMainWindow = nullptr;
Model *mModel = nullptr;
int mIconSize;
bool mShowIcons;
bool mShowText;
QAction *mShowIconsAction;
QAction *mShowTextAction;
QAction *mShowBothAction;
QAction *mBigIconsAction;
QAction *mNormalIconsAction;
QAction *mSmallIconsAction;
QAction *mHideSideBarAction;
bool mShowIcons = false;
bool mShowText = false;
QAction *mShowIconsAction = nullptr;
QAction *mShowTextAction = nullptr;
QAction *mShowBothAction = nullptr;
QAction *mBigIconsAction = nullptr;
QAction *mNormalIconsAction = nullptr;
QAction *mSmallIconsAction = nullptr;
QAction *mHideSideBarAction = nullptr;
};
class IconSidePane : public SidePaneBase
......
......@@ -121,22 +121,22 @@ private Q_SLOTS:
private:
void setHelpText(QAction *action, const QString &text);
QFrame *mTopWidget;
QFrame *mTopWidget = nullptr;
QSplitter *mSplitter;
QSplitter *mSplitter = nullptr;
KActionMenu *mNewActions;
SidePaneBase *mSidePane;
QStackedWidget *mPartsStack;
KontactInterface::Plugin *mCurrentPlugin;
KParts::PartManager *mPartManager;
KActionMenu *mNewActions = nullptr;
SidePaneBase *mSidePane = nullptr;
QStackedWidget *mPartsStack = nullptr;
KontactInterface::Plugin *mCurrentPlugin = nullptr;
KParts::PartManager *mPartManager = nullptr;
PluginList mPlugins;
PluginList mDelayedPreload;
ActionPluginList mActionPlugins;
QList<KPluginInfo> mPluginInfos;
IntroductionWebEngineView *mIntroPart;
KSqueezedTextLabel *mStatusMsgLabel;
IntroductionWebEngineView *mIntroPart = nullptr;
KSqueezedTextLabel *mStatusMsgLabel = nullptr;
QString mInitialActiveModule;
......@@ -144,9 +144,9 @@ private:
QMap<KontactInterface::Plugin *, QAction *> mPluginAction;
AboutDialog *mAboutDialog;
bool mReallyClose;
bool mReallyClose = false;
int mSaveSideBarWidth;
QAction *mShowHideAction;
QAction *mShowHideAction = nullptr;
};
}
......
......@@ -57,7 +57,7 @@ protected:
KontactInterface::Core *core() const;
private:
KontactInterface::Core *mCore;
KontactInterface::Core *mCore = nullptr;
};
}
......
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