Commit f98c4711 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Initialize value in header

parent 68c9eb0c
......@@ -49,7 +49,7 @@ FollowUpReminder::FollowUpReminderInfo *FollowUpReminderInfoItem::info() const
FollowUpReminderInfoWidget::FollowUpReminderInfoWidget(QWidget *parent)
: QWidget(parent)
, mChanged(false)
{
setObjectName(QStringLiteral("FollowUpReminderInfoWidget"));
auto *hbox = new QHBoxLayout(this);
......
......@@ -37,7 +37,7 @@
AttachPropertyDialog::AttachPropertyDialog(QWidget *parent)
: QDialog(parent)
, mAttach(nullptr)
{
setModal(true);
......
......@@ -138,7 +138,7 @@ static const int numFontNames = sizeof fontNames / sizeof *fontNames;
AppearancePageFontsTab::AppearancePageFontsTab(QWidget *parent)
: ConfigModuleTab(parent)
, mActiveFontIndex(-1)
{
assert(numFontNames == sizeof mFont / sizeof *mFont);
......@@ -585,7 +585,7 @@ static const int numDateDisplayConfig
AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent)
: ConfigModuleTab(parent)
, mCustomDateFormatEdit(nullptr)
{
auto *vlay = new QVBoxLayout(this);
......
......@@ -60,7 +60,7 @@ private:
QComboBox *mFontLocationCombo = nullptr;
KFontChooser *mFontChooser = nullptr;
int mActiveFontIndex;
int mActiveFontIndex{-1};
QFont mFont[8];
};
......
......@@ -18,7 +18,7 @@ class ConfigModuleTab : public QWidget
public:
explicit ConfigModuleTab(QWidget *parent = nullptr)
: QWidget(parent)
, mEmitChanges(true)
{
}
......@@ -35,7 +35,7 @@ public Q_SLOTS:
void slotEmitChanged();
void load();
protected:
bool mEmitChanges;
bool mEmitChanges{true};
private:
// reimplement this for loading values of settings which are available
// via GlobalSettings
......
......@@ -98,7 +98,7 @@ void IdentityListViewItem::init(const KIdentityManagement::Identity &ident)
IdentityListView::IdentityListView(QWidget *parent)
: QTreeWidget(parent)
, mIdentityManager(nullptr)
{
#ifndef QT_NO_DRAGANDDROP
setDragEnabled(true);
......
......@@ -693,8 +693,8 @@ KMCommand::Result KMSaveMsgCommand::execute()
KMOpenMsgCommand::KMOpenMsgCommand(QWidget *parent, const QUrl &url, const QString &encoding, KMMainWidget *main)
: KMCommand(parent)
, mUrl(url)
, mJob(nullptr)
, mEncoding(encoding)
,
mEncoding(encoding)
, mMainWidget(main)
{
qCDebug(KMAIL_LOG) << "url :" << url;
......@@ -1467,8 +1467,8 @@ void KMCopyDecryptedCommand::slotAppendResult(KJob *job)
KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item::List &msgList, MessageList::Core::MessageItemSetReference ref)
: KMCommand(nullptr, msgList)
, mDestFolder(destFolder)
, mProgressItem(nullptr)
, mRef(ref)
,
mRef(ref)
{
fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent);
}
......@@ -1476,8 +1476,8 @@ KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonad
KMMoveCommand::KMMoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item &msg, MessageList::Core::MessageItemSetReference ref)
: KMCommand(nullptr, msg)
, mDestFolder(destFolder)
, mProgressItem(nullptr)
, mRef(ref)
,
mRef(ref)
{
fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::Parent);
}
......
......@@ -35,7 +35,7 @@ EXPORT_KONTACT_PLUGIN_WITH_JSON(KMailPlugin, "kmailplugin.json")
KMailPlugin::KMailPlugin(KontactInterface::Core *core, const QVariantList &)
: KontactInterface::Plugin(core, core, "kmail2")
, m_instance(nullptr)
{
setComponentName(QStringLiteral("kmail2"), i18n("KMail2"));
......
......@@ -25,7 +25,7 @@ EXPORT_KONTACT_PLUGIN_WITH_JSON(SummaryView, "summaryplugin.json")
SummaryView::SummaryView(KontactInterface::Core *core, const QVariantList &)
: KontactInterface::Plugin(core, core, nullptr)
, mPart(nullptr)
{
mSyncAction = new KSelectAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Sync All"), this);
actionCollection()->addAction(QStringLiteral("kontact_summary_sync"), mSyncAction);
......
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