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

Initialize values

parent cce2da9a
......@@ -35,10 +35,8 @@ public:
QString selectedTemplate() const;
private Q_SLOTS:
void updateButtons();
private:
void updateButtons();
QListView *mView = nullptr;
QPushButton *mOkButton = nullptr;
};
......
......@@ -39,7 +39,6 @@ KADDRESSBOOKMERGELIB_EXPORT QAbstractItemModel *_k_searchDuplicateResultStubMode
using namespace KABMergeContacts;
SearchDuplicateResultWidget::SearchDuplicateResultWidget(QWidget *parent)
: QWidget(parent)
, mIndexListContact(0)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setMargin(0);
......
......@@ -68,7 +68,7 @@ private:
QPushButton *mMergeContact = nullptr;
Akonadi::CollectionComboBox *mCollectionCombobox = nullptr;
MergeContactLoseInformationWarning *mMergeContactWarning = nullptr;
int mIndexListContact;
int mIndexListContact = 0;
};
}
Q_DECLARE_TYPEINFO(KABMergeContacts::MergeConflictResult, Q_MOVABLE_TYPE);
......
......@@ -37,7 +37,6 @@ using namespace KABMailSender;
MailSenderJob::MailSenderJob(const Akonadi::Item::List &listItem, QObject *parent)
: QObject(parent)
, mListItem(listItem)
, mFetchJobCount(0)
{
}
......
......@@ -50,7 +50,7 @@ private:
Akonadi::Item::List mListItem;
Akonadi::Item::List mItemToFetch;
QStringList mEmailAddresses;
int mFetchJobCount;
int mFetchJobCount = 0;
};
}
......
......@@ -35,9 +35,6 @@ using namespace KABSendVCards;
SendVcardsJob::SendVcardsJob(const Akonadi::Item::List &listItem, QObject *parent)
: QObject(parent)
, mListItem(listItem)
, mTempDir(nullptr)
, mVersion(KContacts::VCardConverter::v3_0)
, mExpandGroupJobCount(0)
{
//Don't delete it.
mAttachmentTemporary = new MimeTreeParser::AttachmentTemporaryFilesDirs();
......
......@@ -52,7 +52,7 @@ private:
Akonadi::Item::List mListItem;
MimeTreeParser::AttachmentTemporaryFilesDirs *mAttachmentTemporary = nullptr;
QTemporaryDir *mTempDir = nullptr;
KContacts::VCardConverter::Version mVersion;
KContacts::VCardConverter::Version mVersion = KContacts::VCardConverter::v3_0;
int mExpandGroupJobCount = 0;
};
}
......
......@@ -24,7 +24,6 @@
ExternalComposerPluginEditorInterface::ExternalComposerPluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInitInterface(parent)
, mEnabled(false)
{
}
......
......@@ -33,7 +33,7 @@ public:
void reloadConfig() override;
private:
QString mExternalComposerPath;
bool mEnabled;
bool mEnabled = false;
};
#endif
......@@ -26,7 +26,6 @@
AutoCorrectionPluginEditorInterface::AutoCorrectionPluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInterface(parent)
, mSelectedText(false)
{
}
......
......@@ -35,7 +35,7 @@ public:
private:
void slotAutoCorrectAllText();
void slotAutoCorrectSelectedText();
bool mSelectedText;
bool mSelectedText = false;
};
#endif
......@@ -27,7 +27,6 @@
ChangeCasePluginEditorInterface::ChangeCasePluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInterface(parent)
, mType(Unknown)
{
}
......
......@@ -49,7 +49,7 @@ private:
SentenseCase,
ReverseCase
};
ChangeCaseType mType;
ChangeCaseType mType = Unknown;
};
#endif
......@@ -34,10 +34,9 @@ public:
void createAction(KActionCollection *ac) override;
void exec() override;
private Q_SLOTS:
void slotActivated();
void charSelected(QChar c);
private:
void charSelected(QChar c);
void slotActivated();
QPointer<KPIMTextEdit::SelectSpecialCharDialog> mSelectSpecialChar;
};
......
......@@ -27,7 +27,6 @@
ZoomTextPluginEditorInterface::ZoomTextPluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInterface(parent)
, mType(Unknown)
{
}
......
......@@ -46,7 +46,7 @@ private:
ZoomIn,
ZoomOut
};
ZoomTextType mType;
ZoomTextType mType = Unknown;
};
#endif
......@@ -37,12 +37,11 @@ public Q_SLOTS:
private:
struct AutomaticAddContactsSettings {
AutomaticAddContactsSettings()
: mEnabled(false)
, mContactCollection(Akonadi::Collection(-1))
: mContactCollection(Akonadi::Collection(-1))
{
}
bool mEnabled;
bool mEnabled = false;
Akonadi::Collection mContactCollection;
};
QHash<uint, AutomaticAddContactsSettings> mHashSettings;
......
......@@ -37,7 +37,6 @@
AutomaticAddContactsJob::AutomaticAddContactsJob(QObject *parent)
: QObject(parent)
, mCurrentIndex(-1)
{
}
......
......@@ -54,6 +54,6 @@ private:
QString mProcessEmail;
QString mName;
Akonadi::Collection mCollection;
int mCurrentIndex;
int mCurrentIndex = -1;
};
#endif // AUTOMATICADDCONTACTSJOB_H
......@@ -36,7 +36,6 @@ QString configGroupName()
}
AutomaticAddContactsTabWidget::AutomaticAddContactsTabWidget(QWidget *parent, QAbstractItemModel *model)
: QWidget(parent)
, mIdentity(0)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -43,7 +43,7 @@ Q_SIGNALS:
private:
QCheckBox *mEnabled = nullptr;
Akonadi::CollectionComboBox *mCollectionCombobox = nullptr;
uint mIdentity;
uint mIdentity = 0;
};
#endif // AUTOMATICADDCONTACTSTABWIDGET_H
......@@ -20,7 +20,6 @@
#include "confirmaddresscheckjob.h"
ConfirmAddressCheckJob::ConfirmAddressCheckJob()
: mRejectedDomain(false)
{
}
......
......@@ -45,7 +45,7 @@ private:
QStringList mInvalidEmails;
QStringList mDomains;
QStringList mWhiteEmails;
bool mRejectedDomain;
bool mRejectedDomain = false;
};
#endif // CONFIRMADDRESSCHECKJOB_H
......@@ -40,14 +40,9 @@ private:
void slotAddWhiteListEmails(const QStringList &lst, uint currentIdentity);
struct ConfirmAddressSettings {
ConfirmAddressSettings()
: mRejectedDomain(false)
{
}
QStringList mDomains;
QStringList mWhiteLists;
bool mRejectedDomain;
bool mRejectedDomain = false;
};
QHash<uint, ConfirmAddressSettings> mHashSettings;
......
......@@ -28,7 +28,6 @@
SelectImapCreateFolderJob::SelectImapCreateFolderJob(QObject *parent)
: QObject(parent)
, mSession(nullptr)
{
}
......
......@@ -45,9 +45,9 @@ private:
void slotCreateFolderDone(KJob *job);
void slotLoginDone(KJob *job);
void failed();
KIMAP::Session *mSession = nullptr;
KSieveUi::SieveImapAccountSettings mSieveImapAccount;
QString mNewFolderName;
KIMAP::Session *mSession = nullptr;
};
#endif // SELECTIMAPCREATEJOB_H
......@@ -34,10 +34,8 @@ public:
QString selectedFolderName() const;
private Q_SLOTS:
void slotEnabledNewFolder(bool enabled);
private:
void slotEnabledNewFolder(bool enabled);
void writeConfig();
void readConfig();
void slotCreateFolder();
......
......@@ -44,11 +44,9 @@ public:
Q_SIGNALS:
void modelLoaded(QStandardItemModel *model, bool success);
private Q_SLOTS:
private:
void slotLoaded(bool success, QStandardItemModel *model);
void slotCreateFolderDone(const KSieveUi::SieveImapAccountSettings &account, bool success);
private:
void fillModel(const KSieveUi::SieveImapAccountSettings &account, QStandardItemModel *model);
QHash<QString, QStandardItemModel *> mHashFolderModel;
};
......
......@@ -62,10 +62,8 @@ Q_SIGNALS:
void folderSelected();
void folderIsSelected(bool selected);
private Q_SLOTS:
void slotModelLoaded(QStandardItemModel *model, bool success);
private:
void slotModelLoaded(QStandardItemModel *model, bool success);
void slotDoubleClicked(const QModelIndex &index);
void slotSearchPattern(const QString &pattern);
void slotCurrentChanged(const QModelIndex &current, const QModelIndex &previous);
......
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