Commit 5e47a478 authored by Laurent Montel's avatar Laurent Montel 😁

initialize variables

parent c1099ba0
......@@ -62,7 +62,7 @@ private Q_SLOTS:
void slotNewContactGroup();
private:
KontactInterface::UniqueAppWatcher *mUniqueAppWatcher;
KontactInterface::UniqueAppWatcher *mUniqueAppWatcher = nullptr;
};
#endif
......@@ -43,10 +43,10 @@ class CategorySelectWidgetPrivate : public QObject
public:
explicit CategorySelectWidgetPrivate(CategorySelectWidget *parent);
Akonadi::TagModel *tagModel;
Akonadi::TagModel *tagModel = nullptr;
int rowOffset;
QTimer *updateTimer;
KPIM::KCheckComboBox *checkCombo;
QTimer *updateTimer = nullptr;
KPIM::KCheckComboBox *checkCombo = nullptr;
void init();
QStandardItemModel *itemModel() const;
......
......@@ -44,7 +44,7 @@ public:
int activate(const QStringList &arguments, const QString &) override;
private:
MainWindow *mMainWindow;
MainWindow *mMainWindow = nullptr;
};
int KAddressBookApplication::activate(const QStringList &arguments, const QString &)
......
......@@ -657,8 +657,7 @@ void MainWidget::setupActions(KActionCollection *collection)
connect(action, &QAction::triggered, mItemView, &Akonadi::EntityTreeView::selectAll);
#if defined(HAVE_PRISON)
KToggleAction *qrtoggleAction;
qrtoggleAction = collection->add<KToggleAction>(QStringLiteral("options_show_qrcodes"));
KToggleAction *qrtoggleAction = collection->add<KToggleAction>(QStringLiteral("options_show_qrcodes"));
qrtoggleAction->setText(i18n("Show QR Codes"));
qrtoggleAction->setWhatsThis(i18n("Show QR Codes in the contact."));
connect(qrtoggleAction, &KToggleAction::toggled, this, &MainWidget::setQRCodeShow);
......
......@@ -39,7 +39,7 @@ public:
void print(const KContacts::Addressee::List &, PrintProgress *) override;
private:
KAddressBookGrantlee::GrantleePrint *mGrantleePrint;
KAddressBookGrantlee::GrantleePrint *mGrantleePrint = nullptr;
};
class GrantleeStyleFactory : public PrintStyleFactory
......
......@@ -119,8 +119,8 @@ protected:
{
}
PrintStyleFactory *printstyleFactory;
PrintStyle *printStyle;
PrintStyleFactory *printstyleFactory = nullptr;
PrintStyle *printStyle = nullptr;
};
QList<PrintStyleDefinition *> mPrintStyleDefinition;
......
......@@ -40,7 +40,7 @@ public:
void print(const KContacts::Addressee::List &contacts, PrintProgress *) override;
private:
RingBinderStyleAppearanceForm *mPageAppearance;
RingBinderStyleAppearanceForm *mPageAppearance = nullptr;
};
class RingBinderPrintStyleFactory : public PrintStyleFactory
......
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