Commit 6fbf8161 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Tomaz Canabrava
Browse files

Const Correctness

parent 753b174b
......@@ -254,9 +254,9 @@ Filter::HotSpot::HotSpot(int startLine, int startColumn, int endLine, int endCol
{
}
QList<QAction *> Filter::HotSpot::actions()
QList<QAction *> Filter::HotSpot::actions() const
{
return QList<QAction *>();
return {};
}
int Filter::HotSpot::startLine() const
......@@ -434,7 +434,7 @@ UrlFilter::HotSpot::~HotSpot()
{
}
QList<QAction *> UrlFilter::HotSpot::actions()
QList<QAction *> UrlFilter::HotSpot::actions() const
{
auto openAction = new QAction(this);
auto copyAction = new QAction(this);
......@@ -589,7 +589,7 @@ FileFilter::HotSpot::~HotSpot()
{
}
QList<QAction *> FileFilter::HotSpot::actions()
QList<QAction *> FileFilter::HotSpot::actions() const
{
auto openAction = new QAction(this);
openAction->setText(i18n("Open File"));
......
......@@ -122,7 +122,7 @@ public:
* Returns a list of actions associated with the hotspot which can be used in a
* menu or toolbar
*/
virtual QList<QAction *> actions();
virtual QList<QAction *> actions() const;
protected:
/** Sets the type of a hotspot. This should only be set once */
......@@ -255,7 +255,7 @@ public:
const QStringList &capturedTexts);
~HotSpot() override;
QList<QAction *> actions() override;
QList<QAction *> actions() const override;
/**
* Open a web browser at the current URL. The url itself can be determined using
......@@ -302,7 +302,7 @@ public:
const QStringList &capturedTexts, const QString &filePath);
~HotSpot() override;
QList<QAction *> actions() override;
QList<QAction *> actions() const override;
/**
* Opens kate for editing the file.
......
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