Commit 1ec70d13 authored by Laurent Montel's avatar Laurent Montel 😁

initialize pointer

parent 48d50007
......@@ -81,7 +81,6 @@ static void setCurrentAuthMode(QComboBox *authCombo, MailTransport::Transport::E
ServerSieveSettings::ServerSieveSettings(QWidget *parent)
: QWidget(parent)
, ui(new Ui::ServerSieveSettings)
, mServerTest(nullptr)
{
ui->setupUi(this);
ui->serversievelabel->setMinimumSize(ui->serversievelabel->sizeHint());
......
......@@ -81,8 +81,8 @@ private:
void populateDefaultAuthenticationOptions(QComboBox *combobox);
void slotSafetyChanged();
void populateDefaultComboBoxAuthenticationOptions();
Ui::ServerSieveSettings *ui;
MailTransport::ServerTest *mServerTest;
Ui::ServerSieveSettings *ui = nullptr;
MailTransport::ServerTest *mServerTest = nullptr;
};
#endif // SERVERSIEVESETTINGS_H
......@@ -52,8 +52,8 @@ private Q_SLOTS:
private:
void readConfig();
void writeConfig();
ServerSieveSettings *mServerSieveSettings;
QPushButton *mOkButton;
ServerSieveSettings *mServerSieveSettings = nullptr;
QPushButton *mOkButton = nullptr;
};
#endif // SERVERSIEVESETTINGSDIALOG_H
......@@ -27,7 +27,6 @@
SieveEditorBookmarks::SieveEditorBookmarks(SieveEditorMainWindow *mainWindow, KActionCollection *collection, QMenu *menu, QObject *parent)
: QObject(parent)
, KBookmarkOwner()
, mBookmarkMenu(nullptr)
, mMenu(menu)
, mMainWindow(mainWindow)
{
......
......@@ -44,9 +44,9 @@ Q_SIGNALS:
void openUrl(const QUrl &url);
private:
KBookmarkMenu *mBookmarkMenu;
QMenu *mMenu;
SieveEditorMainWindow *mMainWindow;
KBookmarkMenu *mBookmarkMenu = nullptr;
QMenu *mMenu = nullptr;
SieveEditorMainWindow *mMainWindow = nullptr;
};
#endif // SIEVEEDITORBOOKMARKS_H
......@@ -41,8 +41,8 @@ private Q_SLOTS:
void slotServerSieveFound(bool hasServer);
private:
SieveEditorConfigureServerPage *mConfigureWidget;
SieveEditorMainWidget *mSieveEditorMainWidget;
SieveEditorConfigureServerPage *mConfigureWidget = nullptr;
SieveEditorMainWidget *mSieveEditorMainWidget = nullptr;
};
#endif // SIEVEEDITORCENTRALWIDGET_H
......@@ -37,10 +37,10 @@ private:
void readConfig();
void writeConfig();
void loadServerSieveConfig();
SieveEditorConfigureServerWidget *mServerWidget;
QCheckBox *mCloseWallet;
QCheckBox *mWrapText;
QTabWidget *mTabWidget;
SieveEditorConfigureServerWidget *mServerWidget = nullptr;
QCheckBox *mCloseWallet = nullptr;
QCheckBox *mWrapText = nullptr;
QTabWidget *mTabWidget = nullptr;
};
#endif // SIEVEEDITORCONFIGUREDIALOG_H
......@@ -44,7 +44,7 @@ private Q_SLOTS:
void slotItemSelectionChanged();
private:
Ui::SieveEditorConfigureServerWidget *ui;
Ui::SieveEditorConfigureServerWidget *ui = nullptr;
};
#endif // SIEVEEDITORCONFIGURESERVERWIDGET_H
......@@ -116,10 +116,10 @@ private:
QWidget *hasExistingPage(const QUrl &url);
QColor mModifiedScriptColor;
QColor mScriptColor;
SieveEditorTabWidget *mTabWidget;
SieveEditorScriptManagerWidget *mScriptManagerWidget;
QStackedWidget *mStackedWidget;
SieveEditorEmptyTabWidgetLabel *mEditorEmptyLabel;
SieveEditorTabWidget *mTabWidget = nullptr;
SieveEditorScriptManagerWidget *mScriptManagerWidget = nullptr;
QStackedWidget *mStackedWidget = nullptr;
SieveEditorEmptyTabWidgetLabel *mEditorEmptyLabel = nullptr;
};
#endif // SIEVEEDITORMAINWIDGET_H
......@@ -66,43 +66,43 @@ private:
void initStatusBar();
void readConfig();
void setupActions();
SieveEditorCentralWidget *mMainWidget;
QAction *mDeleteScript;
QAction *mNewScript;
QAction *mEditScript;
QAction *mDesactivateScript;
QAction *mRefreshList;
QAction *mUploadScript;
QAction *mGoToLine;
QAction *mFindAction;
QAction *mReplaceAction;
QAction *mUndoAction;
QAction *mRedoAction;
QAction *mCopyAction;
QAction *mPasteAction;
QAction *mCutAction;
QAction *mSelectAllAction;
QAction *mSaveAsAction;
QAction *mImportAction;
QAction *mShareAction;
QAction *mSpellCheckAction;
QAction *mCheckSyntaxAction;
QAction *mCreateRulesGraphicallyAction;
QAction *mCommentAction;
QAction *mUncommentAction;
QAction *mZoomInAction;
QAction *mZoomOutAction;
QAction *mZoomResetAction;
QAction *mDebugSieveScriptAction;
QAction *mWrapTextAction;
QAction *mPrintAction;
QAction *mPrintPreviewAction;
PimCommon::KActionMenuChangeCase *mMenuChangeCaseAction;
SieveEditorCentralWidget *mMainWidget = nullptr;
QAction *mDeleteScript = nullptr;
QAction *mNewScript = nullptr;
QAction *mEditScript = nullptr;
QAction *mDesactivateScript = nullptr;
QAction *mRefreshList = nullptr;
QAction *mUploadScript = nullptr;
QAction *mGoToLine = nullptr;
QAction *mFindAction = nullptr;
QAction *mReplaceAction = nullptr;
QAction *mUndoAction = nullptr;
QAction *mRedoAction = nullptr;
QAction *mCopyAction = nullptr;
QAction *mPasteAction = nullptr;
QAction *mCutAction = nullptr;
QAction *mSelectAllAction = nullptr;
QAction *mSaveAsAction = nullptr;
QAction *mImportAction = nullptr;
QAction *mShareAction = nullptr;
QAction *mSpellCheckAction = nullptr;
QAction *mCheckSyntaxAction = nullptr;
QAction *mCreateRulesGraphicallyAction = nullptr;
QAction *mCommentAction = nullptr;
QAction *mUncommentAction = nullptr;
QAction *mZoomInAction = nullptr;
QAction *mZoomOutAction = nullptr;
QAction *mZoomResetAction = nullptr;
QAction *mDebugSieveScriptAction = nullptr;
QAction *mWrapTextAction = nullptr;
QAction *mPrintAction = nullptr;
QAction *mPrintPreviewAction = nullptr;
PimCommon::KActionMenuChangeCase *mMenuChangeCaseAction = nullptr;
QLabel *mStatusBarInfo;
SieveEditorBookmarks *mSieveEditorBookmarks;
KActionMenu *mBookmarkMenu;
bool mNetworkIsDown;
QLabel *mStatusBarInfo = nullptr;
SieveEditorBookmarks *mSieveEditorBookmarks = nullptr;
KActionMenu *mBookmarkMenu = nullptr;
bool mNetworkIsDown = false;
};
#endif // SIEVEEDITORMAINWINDOW_H
......@@ -32,8 +32,6 @@
SieveEditorPageWidget::SieveEditorPageWidget(QWidget *parent)
: QWidget(parent)
, mWasActive(false)
, mIsNewScript(false)
{
QVBoxLayout *vbox = new QVBoxLayout;
setLayout(vbox);
......
......@@ -104,9 +104,9 @@ private Q_SLOTS:
private:
void setModified(bool b);
QUrl mCurrentURL;
KSieveUi::SieveEditorWidget *mSieveEditorWidget;
bool mWasActive;
bool mIsNewScript;
KSieveUi::SieveEditorWidget *mSieveEditorWidget = nullptr;
bool mWasActive = false;
bool mIsNewScript = false;
};
#endif // SIEVEEDITORPAGEWIDGET_H
......@@ -59,7 +59,7 @@ private Q_SLOTS:
void slotUpdateButtons(QTreeWidgetItem *item);
private:
SieveEditorManageSieveWidget *mTreeView;
SieveEditorManageSieveWidget *mTreeView = nullptr;
};
#endif // SIEVEEDITORSCRIPTMANAGERWIDGET_H
......@@ -36,7 +36,7 @@ public:
void setSieveCapabilities(const QStringList &capabilities);
private:
KSieveUi::SieveEditor *mSieveEditor;
KSieveUi::SieveEditor *mSieveEditor = nullptr;
};
#endif // SIEVEEDITORSCRIPTWIDGET_H
......@@ -23,7 +23,6 @@
SieveServerSettings::SieveServerSettings(QObject *parent)
: QObject(parent)
, mWallet(nullptr)
{
}
......
......@@ -40,7 +40,7 @@ private Q_SLOTS:
private:
explicit SieveServerSettings(QObject *parent = nullptr);
friend class SieveServerSettingsPrivate;
KWallet::Wallet *mWallet;
KWallet::Wallet *mWallet = nullptr;
};
#endif // SieveServerSettings_H
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