Commit 97fba454 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent 408902d8
Pipeline #50252 passed with stage
in 27 minutes and 5 seconds
......@@ -23,8 +23,8 @@
CheckIndexingManager::CheckIndexingManager(Akonadi::Search::PIM::IndexedItems *indexer, QObject *parent)
: QObject(parent)
, mIndexedItems(indexer)
, mTimer(new QTimer(this))
{
mTimer = new QTimer(this);
mTimer->setSingleShot(true);
mTimer->setInterval(5 * 1000); // 5 secondes
connect(mTimer, &QTimer::timeout, this, &CheckIndexingManager::checkNextCollection);
......
......@@ -42,7 +42,7 @@ private:
Akonadi::Search::PIM::IndexedItems *const mIndexedItems;
Akonadi::Collection::List mListCollection;
QTimer *mTimer = nullptr;
QTimer *const mTimer;
QList<qint64> mCollectionsIndexed;
QList<qint64> mCollectionsNeedToBeReIndexed;
int mIndex = 0;
......
......@@ -48,7 +48,7 @@ class VacationScriptIndicatorWidget : public QWidget
Q_OBJECT
public:
explicit VacationScriptIndicatorWidget(QWidget *parent = nullptr);
~VacationScriptIndicatorWidget();
~VacationScriptIndicatorWidget() override;
void setVacationScriptActive(bool active, const QString &serverName);
......
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