Commit 808433b4 authored by Laurent Montel's avatar Laurent Montel 😁

initialize pointer

parent cc4957a8
......@@ -83,19 +83,19 @@ private:
void sslResult(bool encrypted);
private:
Session *m_session;
KTcpSocket *m_socket;
Session *m_session = nullptr;
KTcpSocket *m_socket = nullptr;
QUrl m_url;
sasl_conn_t *m_sasl_conn;
sasl_interact_t *m_sasl_client_interact;
sasl_conn_t *m_sasl_conn = nullptr;
sasl_interact_t *m_sasl_client_interact = nullptr;
QByteArray m_data;
Response m_lastResponse;
qint64 m_pendingQuantity;
QTimer *m_sslCheck;
QTimer *m_sslCheck = nullptr;
};
} // namespace KManageSieve
......
......@@ -98,7 +98,7 @@ public:
class Impl;
private:
Impl *i;
Impl *i = nullptr;
private:
const Lexer &operator=(const Lexer &);
......
......@@ -58,7 +58,7 @@ public:
class Impl;
private:
Impl *i;
Impl *i = nullptr;
private:
const Parser &operator=(const Parser &);
......
......@@ -43,16 +43,13 @@ class KSieveUi::MultiImapVacationDialogPrivate
{
public:
MultiImapVacationDialogPrivate()
: mTabWidget(nullptr)
, mStackedWidget(nullptr)
, mVacationManager(nullptr)
{
}
QList<VacationCreateScriptJob *> mListCreateJob;
QTabWidget *mTabWidget;
QStackedWidget *mStackedWidget;
MultiImapVacationManager *mVacationManager;
QTabWidget *mTabWidget = nullptr;
QStackedWidget *mStackedWidget = nullptr;
MultiImapVacationManager *mVacationManager = nullptr;
};
MultiImapVacationDialog::MultiImapVacationDialog(MultiImapVacationManager *manager, QWidget *parent)
......
......@@ -60,7 +60,7 @@ public:
// Maps top-level items to their child which has the radio button selection
QMap<QTreeWidgetItem *, QTreeWidgetItem *> mSelectedItems;
ManageSieveTreeView *mTreeView;
ManageSieveTreeView *mTreeView = nullptr;
bool mClearAll : 1;
bool mBlockSignal : 1;
};
......@@ -353,7 +353,7 @@ void ManageSieveWidget::changeActiveScript(QTreeWidgetItem *item, bool activate)
u = u.adjusted(QUrl::RemoveFilename);
u.setPath(u.path() + QLatin1Char('/') + selected->text(0));
KManageSieve::SieveJob *job;
KManageSieve::SieveJob *job = nullptr;
if (activate) {
job = KManageSieve::SieveJob::activate(u);
} else {
......
......@@ -65,7 +65,6 @@ class KSieveUi::SieveTreeWidgetItemPrivate
{
public:
SieveTreeWidgetItemPrivate()
: mProgress(nullptr)
{
}
......@@ -74,7 +73,7 @@ public:
delete mProgress;
}
SieveTreeWidgetProgress *mProgress;
SieveTreeWidgetProgress *mProgress = nullptr;
};
SieveTreeWidgetItem::SieveTreeWidgetItem(QTreeWidget *treeWidget, QTreeWidgetItem *item)
......
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