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 bdf2292e authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer

parent 0c3f9cfe
......@@ -47,7 +47,7 @@ protected:
private:
void deleteNextMailbox();
KIMAP::Session *mSession;
KIMAP::Session *mSession = nullptr;
bool mFolderFound;
QScopedPointer< QMapIterator<int, KIMAP::MailBoxDescriptor > > mFolderIterator;
......
......@@ -28,26 +28,20 @@ KolabSettings::KolabSettings(WId winId) : Settings(winId)
void KolabSettings::changeDefaults()
{
setCurrentGroup(QStringLiteral("network"));
KConfigSkeleton::ItemInt *itemImapPort;
itemImapPort = (KConfigSkeleton::ItemInt *) findItem(QStringLiteral("ImapPort"));
KConfigSkeleton::ItemInt *itemImapPort = (KConfigSkeleton::ItemInt *) findItem(QStringLiteral("ImapPort"));
itemImapPort->setDefaultValue(143);
KConfigSkeleton::ItemString *itemSafety;
itemSafety = (KConfigSkeleton::ItemString *) findItem(QStringLiteral("Safety"));
KConfigSkeleton::ItemString *itemSafety = (KConfigSkeleton::ItemString *) findItem(QStringLiteral("Safety"));
itemSafety->setDefaultValue(QStringLiteral("STARTTLS"));
KConfigSkeleton::ItemBool *itemSubscriptionEnabled;
itemSubscriptionEnabled = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("SubscriptionEnabled"));
KConfigSkeleton::ItemBool *itemSubscriptionEnabled = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("SubscriptionEnabled"));
itemSubscriptionEnabled->setDefaultValue(true);
setCurrentGroup(QStringLiteral("cache"));
KConfigSkeleton::ItemBool *itemDisconnectedModeEnabled;
itemDisconnectedModeEnabled = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("DisconnectedModeEnabled"));
KConfigSkeleton::ItemBool *itemDisconnectedModeEnabled = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("DisconnectedModeEnabled"));
itemDisconnectedModeEnabled->setDefaultValue(true);
setCurrentGroup(QStringLiteral("siever"));
KConfigSkeleton::ItemBool *itemSieveSupport;
itemSieveSupport = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("SieveSupport"));
KConfigSkeleton::ItemBool *itemSieveSupport = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("SieveSupport"));
itemSieveSupport->setDefaultValue(true);
KConfigSkeleton::ItemBool *itemSieveReuseConfig;
itemSieveReuseConfig = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("SieveReuseConfig"));
KConfigSkeleton::ItemBool *itemSieveReuseConfig = (KConfigSkeleton::ItemBool *) findItem(QStringLiteral("SieveReuseConfig"));
itemSieveReuseConfig->setDefaultValue(true);
}
......@@ -53,7 +53,7 @@ private:
void fillNewDirectory();
void fillCurrentDirectory();
void createSubFolders();
QTemporaryDir *m_temp;
QTemporaryDir *m_temp = nullptr;
};
#endif
......@@ -99,8 +99,8 @@ public:
}
private:
MixedMaildirStore *mStore;
QTemporaryDir *mDir;
MixedMaildirStore *mStore = nullptr;
QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
......
......@@ -79,8 +79,8 @@ public:
}
private:
MixedMaildirStore *mStore;
QTemporaryDir *mDir;
MixedMaildirStore *mStore = nullptr;
QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
......
......@@ -109,8 +109,8 @@ public:
}
private:
MixedMaildirStore *mStore;
QTemporaryDir *mDir;
MixedMaildirStore *mStore = nullptr;
QTemporaryDir *mDir = nullptr;
private Q_SLOTS:
void init();
......
......@@ -60,10 +60,10 @@ private:
QString listSequence(const QList<QByteArray> &mails) const;
QString uidSequence(const QStringList &uids) const;
FakeServerThread *mFakeServerThread;
FakeServerThread *mFakeServerThread = nullptr;
OrgKdeAkonadiPOP3SettingsInterface *mPOP3SettingsInterface;
OrgKdeAkonadiMaildirSettingsInterface *mMaildirSettingsInterface;
OrgKdeAkonadiPOP3SettingsInterface *mPOP3SettingsInterface = nullptr;
OrgKdeAkonadiMaildirSettingsInterface *mMaildirSettingsInterface = nullptr;
Akonadi::Collection mMaildirCollection;
QString mPop3Identifier;
QString mMaildirIdentifier;
......
......@@ -202,7 +202,7 @@ private:
mutable bool mIdsToSaveValid;
// Current deletion job in process
DeleteJob *mDeleteJob;
DeleteJob *mDeleteJob = nullptr;
};
#endif
......@@ -112,7 +112,7 @@ public: // Job::Visitor interface implementation
}
protected:
FileStore::AbstractJobSession *mSession;
FileStore::AbstractJobSession *mSession = nullptr;
};
class TopLevelCollectionFetcher : public JobProcessingAdaptor
......@@ -311,8 +311,8 @@ public:
QFileInfo mPathFileInfo;
Collection mTopLevelCollection;
FileStore::AbstractJobSession *mSession;
FileStore::Job *mCurrentJob;
FileStore::AbstractJobSession *mSession = nullptr;
FileStore::Job *mCurrentJob = nullptr;
TopLevelCollectionFetcher mTopLevelCollectionFetcher;
CollectionsProcessedNotifier mCollectionsProcessedNotifier;
......
......@@ -171,7 +171,7 @@ public:
}
private:
TestStore *mStore;
TestStore *mStore = nullptr;
private Q_SLOTS:
void init();
......
......@@ -113,7 +113,7 @@ protected:
QUrl authorizeUrl_;
QUrl accessTokenUrl_;
quint16 localPort_;
O0AbstractStore *store_;
O0AbstractStore *store_ = nullptr;
QVariantMap extraTokens_;
};
......
......@@ -35,7 +35,7 @@ Q_SIGNALS:
void groupKeyChanged();
protected:
QSettings *settings_;
QSettings *settings_ = nullptr;
QString groupKey_;
O0SimpleCrypt crypt_;
};
......
......@@ -21,7 +21,7 @@ public Q_SLOTS:
void onTimeOut();
public:
QNetworkReply *reply;
QNetworkReply *reply = nullptr;
};
/// List of O2Replies.
......
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