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)
}
KMCommand::KMCommand(QWidget *parent)
: mCountMsgs(0)
, mResult(Undefined)
, mDeletesItself(false)
: mDeletesItself(false)
, mEmitsCompletedItself(false)
, mParent(parent)
{
}
KMCommand::KMCommand(QWidget *parent, const Akonadi::Item &msg)
: mCountMsgs(0)
, mResult(Undefined)
, mDeletesItself(false)
: mDeletesItself(false)
, mEmitsCompletedItself(false)
, mParent(parent)
{
......@@ -168,9 +164,7 @@ KMCommand::KMCommand(QWidget *parent, const Akonadi::Item &msg)
}
KMCommand::KMCommand(QWidget *parent, const Akonadi::Item::List &msgList)
: mCountMsgs(0)
, mResult(Undefined)
, mDeletesItself(false)
: mDeletesItself(false)
, mEmitsCompletedItself(false)
, mParent(parent)
{
......
......@@ -148,12 +148,12 @@ private:
QPointer<QProgressDialog> mProgressDialog;
//Currently only one async command allowed at a time
static int mCountJobs;
int mCountMsgs;
Result mResult;
int mCountMsgs = 0;
Result mResult = Undefined;
bool mDeletesItself : 1;
bool mEmitsCompletedItself : 1;
QWidget *mParent = nullptr;
QWidget *const mParent;
Akonadi::Item::List mMsgList;
Akonadi::ItemFetchScope mFetchScope;
};
......
......@@ -56,8 +56,6 @@ void VacationLabel::mouseReleaseEvent(QMouseEvent *event)
VacationScriptIndicatorWidget::VacationScriptIndicatorWidget(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