Commit 4bf8f6bd authored by Laurent Montel's avatar Laurent Montel 😁

initialize pointer

parent eca51bd9
......@@ -59,7 +59,7 @@ private:
void readClientPart(int scenarioNumber);
QList< QList<QByteArray> > m_scenarios;
QTcpServer *m_tcpServer;
QTcpServer *m_tcpServer = nullptr;
mutable QMutex m_mutex;
QList<QTcpSocket *> m_clientSockets;
};
......
......@@ -36,9 +36,9 @@ private:
void okClicked();
void slotTextChanged(const QString &text);
Transport *mTransport;
SMTPConfigWidget *mConfigWidget;
QPushButton *mOkButton;
Transport *mTransport = nullptr;
SMTPConfigWidget *mConfigWidget = nullptr;
QPushButton *mOkButton = nullptr;
};
} // namespace MailTransport
......
......@@ -84,7 +84,7 @@ public:
}
SmtpJob *q;
KSmtp::Session *session;
KSmtp::Session *session = nullptr;
KSmtp::SessionUiProxy::Ptr uiProxy;
enum State {
Idle, Precommand, Smtp
......
......@@ -39,7 +39,7 @@ public:
QString metaDataFileNameBaseName;
QString metaDataFileName;
MailTransport::TransportAbstractPlugin *plugin;
MailTransport::TransportAbstractPlugin *plugin = nullptr;
};
namespace {
......
......@@ -37,7 +37,7 @@ class PreCommandJobPrivate
{
public:
PreCommandJobPrivate(PrecommandJob *parent);
QProcess *process;
QProcess *process = nullptr;
QString precommand;
PrecommandJob *q;
......
......@@ -49,18 +49,18 @@ public:
QString fakeHostname;
QString testProtocol;
MailTransport::Socket *normalSocket;
MailTransport::Socket *secureSocket;
MailTransport::Socket *normalSocket = nullptr;
MailTransport::Socket *secureSocket = nullptr;
QSet< int > connectionResults;
QHash< int, QVector<int> > authenticationResults;
QSet< ServerTest::Capability > capabilityResults;
QHash< int, uint > customPorts;
QTimer *normalSocketTimer;
QTimer *secureSocketTimer;
QTimer *progressTimer;
QTimer *normalSocketTimer = nullptr;
QTimer *secureSocketTimer = nullptr;
QTimer *progressTimer = nullptr;
QProgressBar *testProgress;
QProgressBar *testProgress = nullptr;
bool secureSocketFinished;
bool normalSocketFinished;
......
......@@ -38,7 +38,7 @@ class SocketPrivate
public:
SocketPrivate(Socket *s);
Socket *const q;
QSslSocket *socket;
QSslSocket *socket = nullptr;
QString server;
QString protocol;
int port;
......
......@@ -46,10 +46,13 @@ private Q_SLOTS:
void jobInfoMessage(KJob *job, const QString &info, const QString &info2);
private:
MailTransport::TransportComboBox *mComboBox;
QLineEdit *mSenderEdit, *mToEdit, *mCcEdit, *mBccEdit;
KTextEdit *mMailEdit;
KJob *mCurrentJob;
MailTransport::TransportComboBox *mComboBox = nullptr;
QLineEdit *mSenderEdit = nullptr;
QLineEdit *mToEdit = nullptr;
QLineEdit *mCcEdit = nullptr;
QLineEdit *mBccEdit = nullptr;
KTextEdit *mMailEdit = nullptr;
KJob *mCurrentJob = nullptr;
};
#endif
......@@ -40,8 +40,8 @@ public:
QStringList cc;
QStringList bcc;
QByteArray data;
Transport *transport;
QBuffer *buffer;
Transport *transport = nullptr;
QBuffer *buffer = nullptr;
};
TransportJob::TransportJob(Transport *transport, QObject *parent)
......
......@@ -72,18 +72,18 @@ public:
qDeleteAll(transports);
}
KConfig *config;
KConfig *config = nullptr;
QList<Transport *> transports;
TransportType::List types;
bool myOwnChange;
bool appliedChange;
KWallet::Wallet *wallet;
KWallet::Wallet *wallet = nullptr;
bool walletOpenFailed;
bool walletAsyncOpen;
int defaultTransportId;
bool isMainInstance;
QList<TransportJob *> walletQueue;
TransportManager *q;
TransportManager *q = nullptr;
void readConfig();
void writeConfig();
......
......@@ -39,7 +39,6 @@ class AddTransportDialogNG::Private
public:
Private(AddTransportDialogNG *qq)
: q(qq)
, okButton(nullptr)
{
}
......@@ -54,7 +53,7 @@ public:
void readConfig();
AddTransportDialogNG *const q;
QPushButton *okButton;
QPushButton *okButton = nullptr;
::Ui::AddTransportDialog ui;
};
......
......@@ -31,8 +31,8 @@ namespace MailTransport {
class TransportConfigWidgetPrivate
{
public:
Transport *transport;
KConfigDialogManager *manager;
Transport *transport = nullptr;
KConfigDialogManager *manager = nullptr;
virtual ~TransportConfigWidgetPrivate()
{
......
......@@ -44,7 +44,7 @@ public:
FilterActionJob *q;
Collection collection;
Item::List items;
FilterAction *functor;
FilterAction *functor = nullptr;
ItemFetchScope fetchScope;
// Q_SLOTS:
......
......@@ -51,9 +51,12 @@ private Q_SLOTS:
void jobInfoMessage(KJob *job, const QString &info, const QString &info2);
private:
MailTransport::TransportComboBox *mComboBox;
QLineEdit *mSenderEdit, *mToEdit, *mCcEdit, *mBccEdit;
KTextEdit *mMailEdit;
MailTransport::TransportComboBox *mComboBox = nullptr;
QLineEdit *mSenderEdit = nullptr;
QLineEdit *mToEdit = nullptr;
QLineEdit *mCcEdit = nullptr;
QLineEdit *mBccEdit = nullptr;
KTextEdit *mMailEdit = nullptr;
MailTransport::MessageQueueJob *createQueueJob();
};
......
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