summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-04 07:06:15 +0200
committerMontel Laurent <[email protected]>2017-09-04 07:06:15 +0200
commit7c258af790b3e62ab9e3167c94e389457be2fc50 (patch)
tree0fec3588fe764c65332c46ef5e0219e95e671a04
parenta0b28eca0efbd15e0b230ed13157b207fa1d4f2a (diff)
initialize pointer
-rw-r--r--migration/entitytreecreatejob.cpp2
-rw-r--r--resources/dav/resource/setupwizard.cpp3
-rw-r--r--resources/imap/imapresourcebase.h6
-rw-r--r--resources/imap/settingspasswordrequester.h6
-rw-r--r--resources/imap/setupserver.h16
-rw-r--r--resources/kolab/updatemessagejob.h2
-rw-r--r--resources/maildir/maildirresource.h6
-rw-r--r--resources/maildir/retrieveitemsjob.h4
-rw-r--r--resources/mbox/mboxresource.h2
-rw-r--r--resources/mixedmaildir/autotests/collectioncreatetest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/collectiondeletetest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/collectionfetchtest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/collectionmodifytest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/collectionmovetest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/itemcreatetest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/itemmodifytest.cpp4
-rw-r--r--resources/mixedmaildir/autotests/templatemethodstest.cpp4
-rw-r--r--resources/mixedmaildir/compactchangehelper.cpp4
-rw-r--r--resources/mixedmaildir/configdialog.cpp3
-rw-r--r--resources/mixedmaildir/configdialog.h6
-rw-r--r--resources/mixedmaildir/mixedmaildirresource.h4
-rw-r--r--resources/mixedmaildir/retrieveitemsjob.cpp2
-rw-r--r--resources/openxchange/configdialog.h10
-rw-r--r--resources/pop3/accountdialog.h12
-rw-r--r--resources/pop3/autotests/fakeserver/fakeserver.h8
-rw-r--r--resources/pop3/jobs.h6
-rw-r--r--resources/pop3/pop3resource.h6
-rw-r--r--resources/shared/filestore/autotests/abstractlocalstoretest.cpp4
-rw-r--r--resources/tomboynotes/o2/o1.h4
-rw-r--r--resources/tomboynotes/o2/o1requestor.h4
-rw-r--r--resources/tomboynotes/o2/o2.h4
-rw-r--r--resources/tomboynotes/o2/o2requestor.h6
-rw-r--r--resources/tomboynotes/tomboyjobbase.h8
-rw-r--r--resources/tomboynotes/tomboynotesresource.h4
-rw-r--r--resources/tomboynotes/tomboyserverauthenticatejob.h2
-rw-r--r--resources/vcarddir/dirsettingsdialog.h4
36 files changed, 89 insertions, 91 deletions
diff --git a/migration/entitytreecreatejob.cpp b/migration/entitytreecreatejob.cpp
index 1896ade..621c71c 100644
--- a/migration/entitytreecreatejob.cpp
+++ b/migration/entitytreecreatejob.cpp
@@ -44,7 +44,7 @@ void EntityTreeCreateJob::doStart()
void EntityTreeCreateJob::createNextLevelOfCollections()
{
- CollectionCreateJob *job;
+ CollectionCreateJob *job = nullptr;
const Collection::List colList = m_collections.takeFirst();
for (const Collection &collection : colList) {
diff --git a/resources/dav/resource/setupwizard.cpp b/resources/dav/resource/setupwizard.cpp
index dac0e15..12050db 100644
--- a/resources/dav/resource/setupwizard.cpp
+++ b/resources/dav/resource/setupwizard.cpp
@@ -337,10 +337,9 @@ ServerTypePage::ServerTypePage(QWidget *parent)
mServerGroup = new QButtonGroup(this);
mServerGroup->setExclusive(true);
- QRadioButton *button;
QHBoxLayout *hLayout = new QHBoxLayout;
- button = new QRadioButton(i18n("Use one of those servers:"));
+ QRadioButton *button = new QRadioButton(i18n("Use one of those servers:"));
registerField(QStringLiteral("templateConfiguration"), button);
mServerGroup->addButton(button);
mServerGroup->setId(button, 0);
diff --git a/resources/imap/imapresourcebase.h b/resources/imap/imapresourcebase.h
index 25cc275..ff164a3 100644
--- a/resources/imap/imapresourcebase.h
+++ b/resources/imap/imapresourcebase.h
@@ -152,7 +152,7 @@ protected:
//Starts and queues a task
void startTask(ResourceTask *task);
void queueTask(ResourceTask *task);
- SessionPool *m_pool;
+ SessionPool *m_pool = nullptr;
mutable Settings *m_settings;
private:
@@ -165,8 +165,8 @@ private:
QList<ResourceTask *> m_taskList; //used to be able to kill tasks
QPointer<SubscriptionDialog> mSubscriptions;
- ImapIdleManager *m_idle;
- QTimer *m_statusMessageTimer;
+ ImapIdleManager *m_idle = nullptr;
+ QTimer *m_statusMessageTimer = nullptr;
QChar m_separatorCharacter;
};
diff --git a/resources/imap/settingspasswordrequester.h b/resources/imap/settingspasswordrequester.h
index 6af3f40..e319e6a 100644
--- a/resources/imap/settingspasswordrequester.h
+++ b/resources/imap/settingspasswordrequester.h
@@ -51,9 +51,9 @@ private Q_SLOTS:
private:
QString requestManualAuth(bool *userRejected);
- ImapResourceBase *m_resource;
- QDialog *m_requestDialog;
- QDialog *m_settingsDialog;
+ ImapResourceBase *m_resource = nullptr;
+ QDialog *m_requestDialog = nullptr;
+ QDialog *m_settingsDialog = nullptr;
};
#endif
diff --git a/resources/imap/setupserver.h b/resources/imap/setupserver.h
index aeccca1..082a548 100644
--- a/resources/imap/setupserver.h
+++ b/resources/imap/setupserver.h
@@ -83,18 +83,18 @@ private:
void readSettings();
void populateDefaultAuthenticationOptions();
- ImapResourceBase *m_parentResource;
- Ui::SetupServerView *m_ui;
- MailTransport::ServerTest *m_serverTest;
- bool m_subscriptionsChanged;
- bool m_shouldClearCache;
+ ImapResourceBase *m_parentResource = nullptr;
+ Ui::SetupServerView *m_ui = nullptr;
+ MailTransport::ServerTest *m_serverTest = nullptr;
+ bool m_subscriptionsChanged = false;
+ bool m_shouldClearCache = false;
QString m_vacationFileName;
- KIdentityManagement::IdentityCombo *m_identityCombobox;
+ KIdentityManagement::IdentityCombo *m_identityCombobox = nullptr;
QString m_oldResourceName;
QRegExpValidator mValidator;
Akonadi::Collection mOldTrash;
- FolderArchiveSettingPage *m_folderArchiveSettingPage;
- QPushButton *mOkButton;
+ FolderArchiveSettingPage *m_folderArchiveSettingPage = nullptr;
+ QPushButton *mOkButton = nullptr;
private Q_SLOTS:
void slotTest();
diff --git a/resources/kolab/updatemessagejob.h b/resources/kolab/updatemessagejob.h
index 05cce18..1a30f43 100644
--- a/resources/kolab/updatemessagejob.h
+++ b/resources/kolab/updatemessagejob.h
@@ -58,7 +58,7 @@ private Q_SLOTS:
void onReplaceDone(KJob *job);
private:
- KIMAP::Session *mSession;
+ KIMAP::Session *mSession = nullptr;
KMime::Message::Ptr mMessage;
const QString mMailbox;
qint64 mUidNext;
diff --git a/resources/maildir/maildirresource.h b/resources/maildir/maildirresource.h
index 500a8a0..9da556f 100644
--- a/resources/maildir/maildirresource.h
+++ b/resources/maildir/maildirresource.h
@@ -96,11 +96,11 @@ private:
void restartMaildirScan(const KPIM::Maildir &maildir);
private:
- Akonadi_Maildir_Resource::MaildirSettings *mSettings;
- KDirWatch *mFsWatcher;
+ Akonadi_Maildir_Resource::MaildirSettings *mSettings = nullptr;
+ KDirWatch *mFsWatcher = nullptr;
QHash<QString, KPIM::Maildir> mMaildirsForCollection;
QSet<QString> mChangedFiles; //files changed by the resource and that should be ignored in slotFileChanged
- QTimer *mChangedCleanerTimer;
+ QTimer *mChangedCleanerTimer = nullptr;
};
#endif
diff --git a/resources/maildir/retrieveitemsjob.h b/resources/maildir/retrieveitemsjob.h
index 9645305..4827d2e 100644
--- a/resources/maildir/retrieveitemsjob.h
+++ b/resources/maildir/retrieveitemsjob.h
@@ -61,9 +61,9 @@ private:
KPIM::Maildir m_maildir;
QHash<QString, Akonadi::Item> m_localItems;
QString m_mimeType;
- Akonadi::TransactionSequence *m_transaction;
+ Akonadi::TransactionSequence *m_transaction = nullptr;
int m_transactionSize;
- QDirIterator *m_entryIterator;
+ QDirIterator *m_entryIterator = nullptr;
qint64 m_previousMtime;
qint64 m_highestMtime;
QString m_listingPath;
diff --git a/resources/mbox/mboxresource.h b/resources/mbox/mboxresource.h
index 86f5dba..9436743 100644
--- a/resources/mbox/mboxresource.h
+++ b/resources/mbox/mboxresource.h
@@ -62,7 +62,7 @@ private Q_SLOTS:
private:
QHash<KJob *, Akonadi::Item> mCurrentItemDeletions;
- KMBox::MBox *mMBox;
+ KMBox::MBox *mMBox = nullptr;
};
#endif
diff --git a/resources/mixedmaildir/autotests/collectioncreatetest.cpp b/resources/mixedmaildir/autotests/collectioncreatetest.cpp
index bce0ed4..a110eee 100644
--- a/resources/mixedmaildir/autotests/collectioncreatetest.cpp
+++ b/resources/mixedmaildir/autotests/collectioncreatetest.cpp
@@ -47,8 +47,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/collectiondeletetest.cpp b/resources/mixedmaildir/autotests/collectiondeletetest.cpp
index 1ae1e28..54cd011 100644
--- a/resources/mixedmaildir/autotests/collectiondeletetest.cpp
+++ b/resources/mixedmaildir/autotests/collectiondeletetest.cpp
@@ -45,8 +45,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/collectionfetchtest.cpp b/resources/mixedmaildir/autotests/collectionfetchtest.cpp
index 72cb2f1..6a52e4e 100644
--- a/resources/mixedmaildir/autotests/collectionfetchtest.cpp
+++ b/resources/mixedmaildir/autotests/collectionfetchtest.cpp
@@ -69,8 +69,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/collectionmodifytest.cpp b/resources/mixedmaildir/autotests/collectionmodifytest.cpp
index 5b66cf0..92eeb76 100644
--- a/resources/mixedmaildir/autotests/collectionmodifytest.cpp
+++ b/resources/mixedmaildir/autotests/collectionmodifytest.cpp
@@ -49,8 +49,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/collectionmovetest.cpp b/resources/mixedmaildir/autotests/collectionmovetest.cpp
index e7411a0..0eb0e8c 100644
--- a/resources/mixedmaildir/autotests/collectionmovetest.cpp
+++ b/resources/mixedmaildir/autotests/collectionmovetest.cpp
@@ -49,8 +49,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/itemcreatetest.cpp b/resources/mixedmaildir/autotests/itemcreatetest.cpp
index 13260ef..1b7b6bd 100644
--- a/resources/mixedmaildir/autotests/itemcreatetest.cpp
+++ b/resources/mixedmaildir/autotests/itemcreatetest.cpp
@@ -53,8 +53,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/itemmodifytest.cpp b/resources/mixedmaildir/autotests/itemmodifytest.cpp
index 27ec666..f21b0f9 100644
--- a/resources/mixedmaildir/autotests/itemmodifytest.cpp
+++ b/resources/mixedmaildir/autotests/itemmodifytest.cpp
@@ -68,8 +68,8 @@ public:
}
private:
- MixedMaildirStore *mStore;
- QTemporaryDir *mDir;
+ MixedMaildirStore *mStore = nullptr;
+ QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/autotests/templatemethodstest.cpp b/resources/mixedmaildir/autotests/templatemethodstest.cpp
index 0cb8374..fb43d05 100644
--- a/resources/mixedmaildir/autotests/templatemethodstest.cpp
+++ b/resources/mixedmaildir/autotests/templatemethodstest.cpp
@@ -55,7 +55,7 @@ public:
public:
Collection mTopLevelCollection;
- mutable FileStore::Job *mLastCheckedJob;
+ mutable FileStore::Job *mLastCheckedJob = nullptr;
mutable int mErrorCode;
mutable QString mErrorText;
@@ -96,7 +96,7 @@ public:
private:
QTemporaryDir mDir;
- TestStore *mStore;
+ TestStore *mStore = nullptr;
private Q_SLOTS:
void init();
diff --git a/resources/mixedmaildir/compactchangehelper.cpp b/resources/mixedmaildir/compactchangehelper.cpp
index bfb86de..d861d5b 100644
--- a/resources/mixedmaildir/compactchangehelper.cpp
+++ b/resources/mixedmaildir/compactchangehelper.cpp
@@ -49,12 +49,12 @@ class CompactChangeHelper::Private
CompactChangeHelper *const q;
public:
- explicit Private(CompactChangeHelper *parent) : q(parent), mSession(nullptr)
+ explicit Private(CompactChangeHelper *parent) : q(parent)
{
}
public:
- Session *mSession;
+ Session *mSession = nullptr;
CollectionRevisionMap mChangesByCollection;
QQueue<UpdateBatch> mPendingUpdates;
UpdateBatch mCurrentUpdate;
diff --git a/resources/mixedmaildir/configdialog.cpp b/resources/mixedmaildir/configdialog.cpp
index 5c40592..0354dd2 100644
--- a/resources/mixedmaildir/configdialog.cpp
+++ b/resources/mixedmaildir/configdialog.cpp
@@ -30,8 +30,7 @@
using KPIM::Maildir;
ConfigDialog::ConfigDialog(QWidget *parent) :
- QDialog(parent),
- mToplevelIsContainer(false)
+ QDialog(parent)
{
setWindowTitle(i18n("Select a KMail Mail folder"));
QWidget *mainWidget = new QWidget(this);
diff --git a/resources/mixedmaildir/configdialog.h b/resources/mixedmaildir/configdialog.h
index 304a97f..90370a7 100644
--- a/resources/mixedmaildir/configdialog.h
+++ b/resources/mixedmaildir/configdialog.h
@@ -39,9 +39,9 @@ private Q_SLOTS:
private:
Ui::ConfigDialog ui;
- KConfigDialogManager *mManager;
- QPushButton *mOkButton;
- bool mToplevelIsContainer;
+ KConfigDialogManager *mManager = nullptr;
+ QPushButton *mOkButton = nullptr;
+ bool mToplevelIsContainer = false;
};
#endif
diff --git a/resources/mixedmaildir/mixedmaildirresource.h b/resources/mixedmaildir/mixedmaildirresource.h
index a6baa87..dd218de 100644
--- a/resources/mixedmaildir/mixedmaildirresource.h
+++ b/resources/mixedmaildir/mixedmaildirresource.h
@@ -92,7 +92,7 @@ private Q_SLOTS:
void tagFetchJobResult(KJob *job);
private:
- MixedMaildirStore *mStore;
+ MixedMaildirStore *mStore = nullptr;
struct TagContext {
Akonadi::Item mItem;
@@ -106,7 +106,7 @@ private:
QSet<Akonadi::Collection::Id> mSynchronizedCollections;
QSet<Akonadi::Collection::Id> mPendingSynchronizeCollections;
- CompactChangeHelper *mCompactHelper;
+ CompactChangeHelper *mCompactHelper = nullptr;
};
#endif
diff --git a/resources/mixedmaildir/retrieveitemsjob.cpp b/resources/mixedmaildir/retrieveitemsjob.cpp
index dec0806..c868aea 100644
--- a/resources/mixedmaildir/retrieveitemsjob.cpp
+++ b/resources/mixedmaildir/retrieveitemsjob.cpp
@@ -76,7 +76,7 @@ public:
public:
const Collection mCollection;
MixedMaildirStore *const mStore;
- TransactionSequence *mTransaction;
+ TransactionSequence *mTransaction = nullptr;
QHash<QString, Item> mServerItemsByRemoteId;
diff --git a/resources/openxchange/configdialog.h b/resources/openxchange/configdialog.h
index 6526614..b63e4ef 100644
--- a/resources/openxchange/configdialog.h
+++ b/resources/openxchange/configdialog.h
@@ -41,11 +41,11 @@ private Q_SLOTS:
void checkConnectionJobFinished(KJob *);
private:
- KConfigDialogManager *mManager;
- KLineEdit *mServerEdit;
- KLineEdit *mUserEdit;
- KLineEdit *mPasswordEdit;
- QPushButton *mCheckConnectionButton;
+ KConfigDialogManager *mManager = nullptr;
+ KLineEdit *mServerEdit = nullptr;
+ KLineEdit *mUserEdit = nullptr;
+ KLineEdit *mPasswordEdit = nullptr;
+ QPushButton *mCheckConnectionButton = nullptr;
};
#endif
diff --git a/resources/pop3/accountdialog.h b/resources/pop3/accountdialog.h
index 86d32cb..f8e5729 100644
--- a/resources/pop3/accountdialog.h
+++ b/resources/pop3/accountdialog.h
@@ -74,14 +74,14 @@ private:
void populateDefaultAuthenticationOptions();
private:
- POP3Resource *mParentResource;
- QButtonGroup *encryptionButtonGroup;
- MailTransport::ServerTest *mServerTest;
+ POP3Resource *mParentResource = nullptr;
+ QButtonGroup *encryptionButtonGroup = nullptr;
+ MailTransport::ServerTest *mServerTest = nullptr;
QRegExpValidator mValidator;
- bool mServerTestFailed;
- KWallet::Wallet *mWallet;
+ bool mServerTestFailed = false;
+ KWallet::Wallet *mWallet = nullptr;
QString mInitalPassword;
- QPushButton *mOkButton;
+ QPushButton *mOkButton = nullptr;
};
#endif
diff --git a/resources/pop3/autotests/fakeserver/fakeserver.h b/resources/pop3/autotests/fakeserver/fakeserver.h
index 1fc2064..4e44bd2 100644
--- a/resources/pop3/autotests/fakeserver/fakeserver.h
+++ b/resources/pop3/autotests/fakeserver/fakeserver.h
@@ -68,11 +68,11 @@ private:
QList<QByteArray> mAllowedDeletions;
QList<QByteArray> mAllowedRetrieves;
QList<QByteArray> mMails;
- QTcpServer *mTcpServer;
- QTcpSocket *mTcpServerConnection;
+ QTcpServer *mTcpServer = nullptr;
+ QTcpSocket *mTcpServerConnection = nullptr;
int mConnections;
int mProgress;
- bool mGotDisconnected;
+ bool mGotDisconnected = false;
// We use one big mutex to protect everything
// There shouldn't be deadlocks, as there are only 2 places where the functions
@@ -98,7 +98,7 @@ public:
private:
- FakeServer *mServer;
+ FakeServer *mServer = nullptr;
};
#endif
diff --git a/resources/pop3/jobs.h b/resources/pop3/jobs.h
index 3ac77e2..f110070 100644
--- a/resources/pop3/jobs.h
+++ b/resources/pop3/jobs.h
@@ -69,7 +69,7 @@ private:
QString authenticationToString(int type) const;
QPointer<KIO::Slave> mSlave;
- SlaveBaseJob *mCurrentJob;
+ SlaveBaseJob *mCurrentJob = nullptr;
QString mPassword;
};
@@ -93,8 +93,8 @@ protected:
void startJob(const QString &path);
virtual void connectJob();
- KIO::TransferJob *mJob;
- POPSession *mPOPSession;
+ KIO::TransferJob *mJob = nullptr;
+ POPSession *mPOPSession = nullptr;
};
class LoginJob : public SlaveBaseJob
diff --git a/resources/pop3/pop3resource.h b/resources/pop3/pop3resource.h
index 8fd0920..691e7e3 100644
--- a/resources/pop3/pop3resource.h
+++ b/resources/pop3/pop3resource.h
@@ -149,14 +149,14 @@ private:
State mState;
Akonadi::Collection mTargetCollection;
- POPSession *mPopSession;
+ POPSession *mPopSession = nullptr;
bool mAskAgain;
- QTimer *mIntervalTimer;
+ QTimer *mIntervalTimer = nullptr;
bool mIntervalCheckInProgress;
QString mPassword;
bool mSavePassword;
bool mTestLocalInbox;
- KWallet::Wallet *mWallet;
+ KWallet::Wallet *mWallet = nullptr;
// Maps IDs on the server to message sizes on the server
QMap<int, int> mIdsToSizeMap;
diff --git a/resources/shared/filestore/autotests/abstractlocalstoretest.cpp b/resources/shared/filestore/autotests/abstractlocalstoretest.cpp
index dbb48b5..6ba8fd4 100644
--- a/resources/shared/filestore/autotests/abstractlocalstoretest.cpp
+++ b/resources/shared/filestore/autotests/abstractlocalstoretest.cpp
@@ -48,8 +48,8 @@ public:
TestStore() : mLastCheckedJob(nullptr), mLastProcessedJob(nullptr), mErrorCode(0) {}
public:
- mutable Akonadi::FileStore::Job *mLastCheckedJob;
- Akonadi::FileStore::Job *mLastProcessedJob;
+ mutable Akonadi::FileStore::Job *mLastCheckedJob = nullptr;
+ Akonadi::FileStore::Job *mLastProcessedJob = nullptr;
Collection mTopLevelCollection;
diff --git a/resources/tomboynotes/o2/o1.h b/resources/tomboynotes/o2/o1.h
index 6a423b5..369179b 100644
--- a/resources/tomboynotes/o2/o1.h
+++ b/resources/tomboynotes/o2/o1.h
@@ -118,8 +118,8 @@ protected:
QUrl refreshTokenUrl_;
QString verifier_;
QString signatureMethod_;
- QNetworkAccessManager *manager_;
- O2ReplyServer *replyServer_;
+ QNetworkAccessManager *manager_ = nullptr;
+ O2ReplyServer *replyServer_ = nullptr;
};
#endif // O1_H
diff --git a/resources/tomboynotes/o2/o1requestor.h b/resources/tomboynotes/o2/o1requestor.h
index 8bd4af5..e196e75 100644
--- a/resources/tomboynotes/o2/o1requestor.h
+++ b/resources/tomboynotes/o2/o1requestor.h
@@ -54,8 +54,8 @@ protected:
/// Augment reply with a timer.
QNetworkReply *addTimer(QNetworkReply *reply);
- QNetworkAccessManager *manager_;
- O1 *authenticator_;
+ QNetworkAccessManager *manager_ = nullptr;
+ O1 *authenticator_ = nullptr;
};
#endif // O1REQUESTOR_H
diff --git a/resources/tomboynotes/o2/o2.h b/resources/tomboynotes/o2/o2.h
index 2969bb6..6d5c448 100644
--- a/resources/tomboynotes/o2/o2.h
+++ b/resources/tomboynotes/o2/o2.h
@@ -160,8 +160,8 @@ protected:
QString code_;
QString localhostPolicy_;
QString apiKey_;
- QNetworkAccessManager *manager_;
- O2ReplyServer *replyServer_;
+ QNetworkAccessManager *manager_ = nullptr;
+ O2ReplyServer *replyServer_ = nullptr;
O2ReplyList timedReplies_;
GrantFlow grantFlow_;
};
diff --git a/resources/tomboynotes/o2/o2requestor.h b/resources/tomboynotes/o2/o2requestor.h
index 20ac875..cdfe49e 100644
--- a/resources/tomboynotes/o2/o2requestor.h
+++ b/resources/tomboynotes/o2/o2requestor.h
@@ -67,11 +67,11 @@ protected:
Idle, Requesting, ReRequesting
};
- QNetworkAccessManager *manager_;
- O2 *authenticator_;
+ QNetworkAccessManager *manager_ = nullptr;
+ O2 *authenticator_ = nullptr;
QNetworkRequest request_;
QByteArray data_;
- QNetworkReply *reply_;
+ QNetworkReply *reply_ = nullptr;
Status status_;
int id_;
QNetworkAccessManager::Operation operation_;
diff --git a/resources/tomboynotes/tomboyjobbase.h b/resources/tomboynotes/tomboyjobbase.h
index a247b62..d68c0b0 100644
--- a/resources/tomboynotes/tomboyjobbase.h
+++ b/resources/tomboynotes/tomboyjobbase.h
@@ -42,10 +42,10 @@ public:
void setAuthentication(const QString &token, const QString &secret);
protected:
- KIO::Integration::AccessManager *mManager;
- O1Requestor *mRequestor;
- O1Tomboy *mO1;
- QNetworkReply *mReply;
+ KIO::Integration::AccessManager *mManager = nullptr;
+ O1Requestor *mRequestor = nullptr;
+ O1Tomboy *mO1 = nullptr;
+ QNetworkReply *mReply = nullptr;
QString mApiURL;
QString mContentURL;
diff --git a/resources/tomboynotes/tomboynotesresource.h b/resources/tomboynotes/tomboynotesresource.h
index 9c6f11a..7e7e06b 100644
--- a/resources/tomboynotes/tomboynotesresource.h
+++ b/resources/tomboynotes/tomboynotesresource.h
@@ -69,12 +69,12 @@ private:
void retryAfterFailure(const QString &errorMessage);
// Status handling
void showError(const QString &errorText);
- QTimer *mStatusMessageTimer;
+ QTimer *mStatusMessageTimer = nullptr;
// Only one UploadJob should run per time
bool mUploadJobProcessRunning;
- KIO::AccessManager *mManager;
+ KIO::AccessManager *mManager = nullptr;
};
#endif
diff --git a/resources/tomboynotes/tomboyserverauthenticatejob.h b/resources/tomboynotes/tomboyserverauthenticatejob.h
index 5fd7e1e..b96e20d 100644
--- a/resources/tomboynotes/tomboyserverauthenticatejob.h
+++ b/resources/tomboynotes/tomboyserverauthenticatejob.h
@@ -48,7 +48,7 @@ private:
void onUserRequestFinished();
QString mUserURL;
- QWebEngineView *mWebView;
+ QWebEngineView *mWebView = nullptr;
};
diff --git a/resources/vcarddir/dirsettingsdialog.h b/resources/vcarddir/dirsettingsdialog.h
index 58b18d9..58396f7 100644
--- a/resources/vcarddir/dirsettingsdialog.h
+++ b/resources/vcarddir/dirsettingsdialog.h
@@ -40,8 +40,8 @@ private:
void save();
void validate();
Ui::SettingsDialog ui;
- KConfigDialogManager *mManager;
- QPushButton *mOkButton;
+ KConfigDialogManager *mManager = nullptr;
+ QPushButton *mOkButton = nullptr;
};
}