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

Const'ify pointer

parent 656d95f4
Pipeline #56450 canceled with stage
......@@ -148,7 +148,7 @@ public:
private:
QList<KontactInterface::Plugin *> pluginList;
Navigator *mNavigator = nullptr;
Navigator *const mNavigator;
};
class SortFilterProxyModel : public QSortFilterProxyModel
......@@ -238,14 +238,13 @@ public:
}
private:
Navigator *mNavigator = nullptr;
Navigator *const mNavigator;
};
}
Navigator::Navigator(SidePaneBase *parent)
: QListView(parent)
, mSidePane(parent)
, mMainWindow(nullptr)
{
setViewport(new QWidget(this));
......
......@@ -81,7 +81,7 @@ private Q_SLOTS:
private:
void setHelpText(QAction *act, const QString &text);
SidePaneBase *mSidePane = nullptr;
SidePaneBase *const mSidePane;
MainWindow *mMainWindow = nullptr;
Model *mModel = 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