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

Clean up

parent cddea235
...@@ -39,16 +39,13 @@ public: ...@@ -39,16 +39,13 @@ public:
: q(qq) : q(qq)
, mContact(contact) , mContact(contact)
, mParentWidget(parentWidget) , mParentWidget(parentWidget)
, mShowMessageBox(true)
{ {
} }
Private(AddContactJob *qq, const KContacts::Addressee &contact, const Akonadi::Collection &collection) Private(AddContactJob *qq, const KContacts::Addressee &contact, const Akonadi::Collection &collection)
: q(qq) : q(qq)
, mContact(contact) , mContact(contact)
, mParentWidget(nullptr)
, mCollection(collection) , mCollection(collection)
, mShowMessageBox(true)
{ {
} }
...@@ -138,11 +135,11 @@ public: ...@@ -138,11 +135,11 @@ public:
q->emitResult(); q->emitResult();
} }
AddContactJob *q; AddContactJob *q = nullptr;
KContacts::Addressee mContact; KContacts::Addressee mContact;
QWidget *mParentWidget = nullptr; QWidget *mParentWidget = nullptr;
Akonadi::Collection mCollection; Akonadi::Collection mCollection;
bool mShowMessageBox = false; bool mShowMessageBox = true;
}; };
AddContactJob::AddContactJob(const KContacts::Addressee &contact, QWidget *parentWidget, QObject *parent) AddContactJob::AddContactJob(const KContacts::Addressee &contact, QWidget *parentWidget, QObject *parent)
......
...@@ -278,7 +278,7 @@ public: ...@@ -278,7 +278,7 @@ public:
} }
} }
AddEmailAddressJob *q; AddEmailAddressJob *q = nullptr;
QString mCompleteAddress; QString mCompleteAddress;
QString mEmail; QString mEmail;
QString mName; QString mName;
......
...@@ -265,7 +265,7 @@ public: ...@@ -265,7 +265,7 @@ public:
q->emitResult(); q->emitResult();
} }
AddEmailDisplayJob *q; AddEmailDisplayJob *q = nullptr;
Akonadi::Item contact; Akonadi::Item contact;
Akonadi::Item::Id messageId; Akonadi::Item::Id messageId;
QString mCompleteAddress; QString mCompleteAddress;
......
...@@ -93,7 +93,7 @@ public: ...@@ -93,7 +93,7 @@ public:
q->emitResult(); q->emitResult();
} }
OpenEmailAddressJob *q; OpenEmailAddressJob *q = nullptr;
QString mCompleteAddress; QString mCompleteAddress;
QString mEmail; QString mEmail;
QString mName; QString mName;
......
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