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

const'ify pointer

parent 191e7fd7
Pipeline #59950 passed with stage
in 16 minutes and 39 seconds
......@@ -12,9 +12,9 @@
using namespace KSieveUi;
SieveEditorLoadProgressIndicator::SieveEditorLoadProgressIndicator(QObject *parent)
: QObject(parent)
, mProgressTimer(new QTimer(this))
{
mProgressPix = KIconLoader::global()->loadPixmapSequence(QStringLiteral("process-working"), KIconLoader::SizeSmallMedium);
mProgressTimer = new QTimer(this);
connect(mProgressTimer, &QTimer::timeout, this, &SieveEditorLoadProgressIndicator::slotTimerDone);
}
......
......@@ -29,7 +29,7 @@ private:
void slotTimerDone();
int mProgressCount = 0;
KPixmapSequence mProgressPix;
QTimer *mProgressTimer = nullptr;
QTimer *const mProgressTimer;
};
}
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