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

Initialize variable in header

parent ab1d3a89
......@@ -29,7 +29,6 @@
FillComposerJob::FillComposerJob(QObject *parent)
: QObject(parent)
, mMsg(nullptr)
{
}
......
......@@ -26,9 +26,6 @@
struct FillComposerJobSettings
{
FillComposerJobSettings()
: mIdentity(0)
, mForceShowWindow(false)
, mHidden(false)
{
}
......@@ -68,9 +65,9 @@ struct FillComposerJobSettings
QString mAttachParamValue;
QByteArray mAttachContDisp;
QByteArray mAttachCharset;
unsigned int mIdentity;
bool mForceShowWindow;
bool mHidden;
unsigned int mIdentity = 0;
bool mForceShowWindow = false;
bool mHidden = false;
};
class FillComposerJob : public QObject
......@@ -86,7 +83,7 @@ private:
Q_DISABLE_COPY(FillComposerJob)
void slotOpenComposer();
FillComposerJobSettings mSettings;
KMime::Message::Ptr mMsg;
KMime::Message::Ptr mMsg = nullptr;
};
#endif // FILLCOMPOSERJOB_H
......@@ -29,8 +29,6 @@
HandleClickedUrlJob::HandleClickedUrlJob(QObject *parent)
: QObject(parent)
, mIdentity(0)
, mMsg(nullptr)
{
}
......
......@@ -28,7 +28,6 @@
NewMessageJob::NewMessageJob(QObject *parent)
: QObject(parent)
, mMsg(nullptr)
{
}
......
......@@ -67,7 +67,7 @@ private:
NewMessageJobSettings mNewMessageJobSettings;
Akonadi::Collection mCollection;
QUrl mAttachURL;
KMime::Message::Ptr mMsg;
KMime::Message::Ptr mMsg = nullptr;
};
#endif // NEWMESSAGEJOB_H
......@@ -36,7 +36,7 @@ public:
private:
void slotStoreDone(KJob *job);
KMime::Message::Ptr mMsg;
KMime::Message::Ptr mMsg = nullptr;
Akonadi::Collection mCollection;
};
......
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