Commit 4baf051b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

initialize variable in header

parent b2c97f35
Pipeline #36582 failed with stage
in 64 minutes and 2 seconds
......@@ -24,9 +24,9 @@ private:
void slotSearchDone(KJob *);
void slotUpdateContactDone(KJob *);
QString mEmail;
KContacts::Addressee mContact;
QWidget *mParentWidget = nullptr;
const QString mEmail;
const KContacts::Addressee mContact;
QWidget *const mParentWidget;
};
#endif // UPDATECONTACTJOB_H
......@@ -11,8 +11,6 @@ using namespace MessageViewer;
VcardMemento::VcardMemento(const QStringList &emails)
: QObject(nullptr)
, mIndex(0)
, mFinished(false)
{
mVCardList.reserve(emails.count());
for (const QString &str : emails) {
......
......@@ -56,8 +56,8 @@ private:
void checkEmail();
void continueToCheckEmail();
QVector<VCard> mVCardList;
int mIndex;
bool mFinished;
int mIndex = 0;
bool mFinished = false;
};
}
......
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