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

initialize pointer in header directly

parent 407648fa
......@@ -29,7 +29,6 @@
OpenComposerHiddenJob::OpenComposerHiddenJob(QObject *parent)
: QObject(parent)
, mMsg(nullptr)
{
}
......
......@@ -60,7 +60,7 @@ private:
Q_DISABLE_COPY(OpenComposerHiddenJob)
void slotOpenComposer();
OpenComposerHiddenJobSettings mSettings;
KMime::Message::Ptr mMsg;
KMime::Message::Ptr mMsg = nullptr;
};
#endif // OPENCOMPOSERHIDDENJOB_H
......@@ -35,7 +35,6 @@
OpenComposerJob::OpenComposerJob(QObject *parent)
: QObject(parent)
, mMsg(nullptr)
{
}
......
......@@ -75,7 +75,7 @@ private:
Q_DISABLE_COPY(OpenComposerJob)
void slotOpenComposer();
OpenComposerSettings mOpenComposerSettings;
KMime::Message::Ptr mMsg;
KMime::Message::Ptr mMsg = nullptr;
KMail::Composer::TemplateContext mContext = KMail::Composer::New;
uint mIdentityId = 0;
};
......
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