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

Const'ify pointer

parent d763d22b
Pipeline #77372 passed with stage
in 25 minutes and 11 seconds
...@@ -22,8 +22,8 @@ KMailSettings *KMailSettings::self() ...@@ -22,8 +22,8 @@ KMailSettings *KMailSettings::self()
} }
KMailSettings::KMailSettings() KMailSettings::KMailSettings()
: mConfigSyncTimer(new QTimer(this))
{ {
mConfigSyncTimer = new QTimer(this);
mConfigSyncTimer->setSingleShot(true); mConfigSyncTimer->setSingleShot(true);
connect(mConfigSyncTimer, &QTimer::timeout, this, &KMailSettings::slotSyncNow); connect(mConfigSyncTimer, &QTimer::timeout, this, &KMailSettings::slotSyncNow);
} }
......
...@@ -33,6 +33,6 @@ private: ...@@ -33,6 +33,6 @@ private:
~KMailSettings() override; ~KMailSettings() override;
static KMailSettings *mSelf; static KMailSettings *mSelf;
QTimer *mConfigSyncTimer = nullptr; QTimer *const mConfigSyncTimer;
}; };
Supports Markdown
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