Commit 0583d47f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use override keyword

parent 061f4e95
Pipeline #196403 passed with stage
in 4 minutes
......@@ -25,7 +25,7 @@ public:
enum class State { None, Running, Closed };
explicit Bus(QObject *parent = nullptr);
virtual ~Bus() = default;
~Bus() override = default;
virtual QByteArray read() = 0;
virtual quint16 write(const QByteArray &data) = 0;
......
......@@ -20,7 +20,7 @@ class DebugViewInterface : public QObject
Q_OBJECT
public:
DebugViewInterface(QObject *parent);
virtual ~DebugViewInterface() = default;
~DebugViewInterface() override = default;
/**
* true if debugger is running
......
......@@ -13,7 +13,7 @@ class BranchCheckoutDialog : public BranchesDialog
Q_OBJECT
public:
BranchCheckoutDialog(QWidget *mainWindow, KateProjectPluginView *pluginView, QString projectPath);
~BranchCheckoutDialog();
~BranchCheckoutDialog() override;
void openDialog();
private Q_SLOTS:
......
......@@ -16,7 +16,7 @@ class FileHistoryWidget : public QWidget
Q_OBJECT
public:
explicit FileHistoryWidget(const QString &file, QWidget *parent = nullptr);
~FileHistoryWidget();
~FileHistoryWidget() override;
private Q_SLOTS:
void itemClicked(const QModelIndex &idx);
......
......@@ -43,7 +43,7 @@ class GitWidget : public QWidget
Q_OBJECT
public:
explicit GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow = nullptr, KateProjectPluginView *pluginView = nullptr);
~GitWidget();
~GitWidget() override;
bool eventFilter(QObject *o, QEvent *e) override;
......
......@@ -18,7 +18,7 @@ class MatchExportDialog : public QDialog, public Ui::MatchExportDialog
public:
MatchExportDialog(QWidget *parent, QAbstractItemModel *matchModel, QRegularExpression *regExp);
virtual ~MatchExportDialog();
~MatchExportDialog() override;
protected Q_SLOTS:
......
......@@ -17,7 +17,7 @@ class LocationHistoryTest : public QObject
public:
LocationHistoryTest(QObject *parent = nullptr);
~LocationHistoryTest();
~LocationHistoryTest() override;
KateViewSpace *viewSpace();
KateViewManager *viewManager();
......
......@@ -14,7 +14,7 @@ class KateSessionManagerTest : public QObject
Q_OBJECT
public:
~KateSessionManagerTest();
~KateSessionManagerTest() override;
KateSessionManagerTest();
private Q_SLOTS:
......
......@@ -15,7 +15,7 @@ class KateSessionsActionTest : public QObject
public:
KateSessionsActionTest();
~KateSessionsActionTest();
~KateSessionsActionTest() override;
private Q_SLOTS:
void basic();
......
......@@ -32,7 +32,7 @@ class KATE_PRIVATE_EXPORT KateViewSpace : public QWidget
public:
explicit KateViewSpace(KateViewManager *, QWidget *parent = nullptr, const char *name = nullptr);
~KateViewSpace();
~KateViewSpace() override;
/**
* Returns \e true, if this view space is currently the active view space.
......
......@@ -16,7 +16,7 @@ class QuickOpenLineEdit : public QLineEdit
Q_OBJECT
public:
explicit QuickOpenLineEdit(QWidget *parent);
~QuickOpenLineEdit();
~QuickOpenLineEdit() override;
KateQuickOpenModelList listMode() const
{
......
......@@ -15,7 +15,7 @@ class SignalWatcher : public QObject
#if defined(Q_OS_UNIX)
public:
explicit SignalWatcher(QObject *parent = nullptr);
~SignalWatcher() = default;
~SignalWatcher() override = default;
void watchForSignal(int signal);
......
Supports Markdown
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