Commit 5b74b5cc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix initialize value

parent 6d3973f3
......@@ -63,9 +63,6 @@ using KPIM::BroadcastStatus;
namespace MailCommon {
ExpireJob::ExpireJob(const Akonadi::Collection &folder, bool immediate)
: ScheduledJob(folder, immediate)
, mMaxUnreadTime(0)
, mMaxReadTime(0)
, mMoveToFolder(0)
{
}
......
......@@ -56,8 +56,8 @@ private:
private:
Akonadi::Item::List mRemovedMsgs;
qint64 mMaxUnreadTime;
qint64 mMaxReadTime;
qint64 mMaxUnreadTime = 0;
qint64 mMaxReadTime = 0;
Akonadi::Collection mMoveToFolder;
};
......
......@@ -43,9 +43,6 @@ ScheduledTask::~ScheduledTask()
JobScheduler::JobScheduler(QObject *parent)
: QObject(parent)
, mTimer(this)
, mPendingImmediateTasks(0)
, mCurrentTask(nullptr)
, mCurrentJob(nullptr)
{
connect(&mTimer, &QTimer::timeout, this, &JobScheduler::slotRunNextJob);
// No need to start the internal timer yet, we wait for a task to be scheduled
......
......@@ -130,7 +130,7 @@ private:
TaskList mTaskList; // FIFO of tasks to be run
QTimer mTimer;
int mPendingImmediateTasks;
int mPendingImmediateTasks = 0;
/// Information about the currently running job, if any
ScheduledTask *mCurrentTask = 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