Commit 91dd8140 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix const'ify pointer

parent 57e2d518
Pipeline #26099 passed with stage
in 25 minutes and 36 seconds
......@@ -35,7 +35,7 @@ private Q_SLOTS:
void collectionReceived(KJob *job);
private:
AgentSearchInterface *q = nullptr;
AgentSearchInterface * const q;
};
}
......
......@@ -32,7 +32,7 @@ class Q_DECL_HIDDEN StatisticsProxyModel::Private
{
public:
explicit Private(StatisticsProxyModel *parent)
: q(parent), mToolTipEnabled(false), mExtraColumnsEnabled(false)
: q(parent)
{
}
......@@ -168,10 +168,10 @@ public:
void _k_sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
StatisticsProxyModel *q = nullptr;
StatisticsProxyModel * const q;
bool mToolTipEnabled;
bool mExtraColumnsEnabled;
bool mToolTipEnabled = false;
bool mExtraColumnsEnabled = false;
};
void StatisticsProxyModel::Private::_k_sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
......
......@@ -231,7 +231,7 @@ public:
return mContextTexts[type].value(context);
}
AgentActionManager *q = nullptr;
AgentActionManager * const q;
KActionCollection *mActionCollection = nullptr;
QWidget *mParentWidget = nullptr;
QItemSelectionModel *mSelectionModel = nullptr;
......
......@@ -33,7 +33,7 @@ public:
void writeConfig() const;
AgentTypeWidget *Widget = nullptr;
AgentType agentType;
AgentTypeDialog *q = nullptr;
AgentTypeDialog * const q;
};
void AgentTypeDialog::Private::writeConfig() const
......
......@@ -47,10 +47,7 @@ class Q_DECL_HIDDEN AgentTypeWidget::Private
{
public:
explicit Private(AgentTypeWidget *parent)
: mParent(parent),
mView(nullptr),
mModel(nullptr),
proxyModel(nullptr)
: mParent(parent)
{
}
......@@ -63,7 +60,7 @@ public:
}
}
AgentTypeWidget *mParent = nullptr;
AgentTypeWidget * const mParent;
QListView *mView = nullptr;
AgentTypeModel *mModel = nullptr;
AgentFilterProxyModel *proxyModel = nullptr;
......
......@@ -33,7 +33,7 @@ public:
void slotCacheValueChanged(int /*interval*/);
void slotRetrievalOptionsGroupBoxDisabled(bool disable);
Ui::CachePolicyPage *mUi = nullptr;
Ui::CachePolicyPage * const mUi;
};
void CachePolicyPage::Private::slotIntervalValueChanged(int interval)
......
......@@ -69,7 +69,7 @@ public:
}
}
CollectionPropertiesDialog *q = nullptr;
CollectionPropertiesDialog * const q;
Collection mCollection;
QStringList mPageNames;
QTabWidget *mTabWidget = nullptr;
......
......@@ -42,7 +42,7 @@ public:
void _k_collectionReceived(KJob *job);
void _k_collectionsNamesReceived(KJob *job);
CollectionRequester *q = nullptr;
CollectionRequester * const q;
Collection collection;
QLineEdit *edit = nullptr;
QPushButton *button = 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