Commit 2612d1b5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Variable is already initialize in header

parent 0180165e
Pipeline #37031 passed with stage
in 46 minutes and 42 seconds
...@@ -147,18 +147,14 @@ static void showJobError(KJob *job) ...@@ -147,18 +147,14 @@ static void showJobError(KJob *job)
} }
KMCommand::KMCommand(QWidget *parent) KMCommand::KMCommand(QWidget *parent)
: mCountMsgs(0) : mDeletesItself(false)
, mResult(Undefined)
, mDeletesItself(false)
, mEmitsCompletedItself(false) , mEmitsCompletedItself(false)
, mParent(parent) , mParent(parent)
{ {
} }
KMCommand::KMCommand(QWidget *parent, const Akonadi::Item &msg) KMCommand::KMCommand(QWidget *parent, const Akonadi::Item &msg)
: mCountMsgs(0) : mDeletesItself(false)
, mResult(Undefined)
, mDeletesItself(false)
, mEmitsCompletedItself(false) , mEmitsCompletedItself(false)
, mParent(parent) , mParent(parent)
{ {
...@@ -168,9 +164,7 @@ KMCommand::KMCommand(QWidget *parent, const Akonadi::Item &msg) ...@@ -168,9 +164,7 @@ KMCommand::KMCommand(QWidget *parent, const Akonadi::Item &msg)
} }
KMCommand::KMCommand(QWidget *parent, const Akonadi::Item::List &msgList) KMCommand::KMCommand(QWidget *parent, const Akonadi::Item::List &msgList)
: mCountMsgs(0) : mDeletesItself(false)
, mResult(Undefined)
, mDeletesItself(false)
, mEmitsCompletedItself(false) , mEmitsCompletedItself(false)
, mParent(parent) , mParent(parent)
{ {
......
...@@ -148,12 +148,12 @@ private: ...@@ -148,12 +148,12 @@ private:
QPointer<QProgressDialog> mProgressDialog; QPointer<QProgressDialog> mProgressDialog;
//Currently only one async command allowed at a time //Currently only one async command allowed at a time
static int mCountJobs; static int mCountJobs;
int mCountMsgs; int mCountMsgs = 0;
Result mResult; Result mResult = Undefined;
bool mDeletesItself : 1; bool mDeletesItself : 1;
bool mEmitsCompletedItself : 1; bool mEmitsCompletedItself : 1;
QWidget *mParent = nullptr; QWidget *const mParent;
Akonadi::Item::List mMsgList; Akonadi::Item::List mMsgList;
Akonadi::ItemFetchScope mFetchScope; Akonadi::ItemFetchScope mFetchScope;
}; };
......
...@@ -56,8 +56,6 @@ void VacationLabel::mouseReleaseEvent(QMouseEvent *event) ...@@ -56,8 +56,6 @@ void VacationLabel::mouseReleaseEvent(QMouseEvent *event)
VacationScriptIndicatorWidget::VacationScriptIndicatorWidget(QWidget *parent) VacationScriptIndicatorWidget::VacationScriptIndicatorWidget(QWidget *parent)
: QWidget(parent) : QWidget(parent)
, mBoxLayout(nullptr)
, mInfo(nullptr)
{ {
} }
......
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