libs: const-ify Plasma::WidgetExplorer constructor argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-14 13:48:04 +03:00
parent 797a038098
commit e26a1a2986
2 changed files with 2 additions and 2 deletions

View file

@ -598,7 +598,7 @@ void WidgetExplorerPrivate::_k_immutabilityChanged(const Plasma::ImmutabilityTyp
}
}
WidgetExplorer::WidgetExplorer(Plasma::Location loc, QGraphicsItem *parent)
WidgetExplorer::WidgetExplorer(const Plasma::Location loc, QGraphicsItem *parent)
: QGraphicsWidget(parent),
d(new WidgetExplorerPrivate(this))
{

View file

@ -39,7 +39,7 @@ class PLASMAGENERICSHELL_EXPORT WidgetExplorer : public QGraphicsWidget
{
Q_OBJECT
public:
explicit WidgetExplorer(Plasma::Location loc, QGraphicsItem *parent = nullptr);
explicit WidgetExplorer(const Plasma::Location loc, QGraphicsItem *parent = nullptr);
explicit WidgetExplorer(QGraphicsItem *parent = nullptr);
~WidgetExplorer();