forked from qt-creator/qt-creator
Remove a few redundant occurrences of 'virtual' and 'override'
warning: 'virtual' is redundant since the function is already declared 'override' [modernize-use-override] warning: 'override' is redundant since the function is already declared 'final' [modernize-use-override] Change-Id: I9036a0dc88ed70c4f6e37b916bb24ff65074863d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -248,21 +248,22 @@ public:
|
|||||||
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual void pragmaLibrary(int line, int column) override
|
void pragmaLibrary(int line, int column) override
|
||||||
{
|
{
|
||||||
isLibrary = true;
|
isLibrary = true;
|
||||||
addLocation(line, column);
|
addLocation(line, column);
|
||||||
}
|
}
|
||||||
virtual void importFile(const QString &jsfile, const QString &module,
|
|
||||||
int line, int column) override
|
void importFile(const QString &jsfile, const QString &module,
|
||||||
|
int line, int column) override
|
||||||
{
|
{
|
||||||
imports += ImportInfo::pathImport(
|
imports += ImportInfo::pathImport(
|
||||||
documentPath, jsfile, LanguageUtils::ComponentVersion(), module);
|
documentPath, jsfile, LanguageUtils::ComponentVersion(), module);
|
||||||
addLocation(line, column);
|
addLocation(line, column);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void importModule(const QString &uri, const QString &version, const QString &module,
|
void importModule(const QString &uri, const QString &version, const QString &module,
|
||||||
int line, int column) override
|
int line, int column) override
|
||||||
{
|
{
|
||||||
imports += ImportInfo::moduleImport(uri, LanguageUtils::ComponentVersion(version), module);
|
imports += ImportInfo::moduleImport(uri, LanguageUtils::ComponentVersion(version), module);
|
||||||
addLocation(line, column);
|
addLocation(line, column);
|
||||||
|
|||||||
@@ -85,11 +85,11 @@ public:
|
|||||||
: QAbstractTableModel(parent) {}
|
: QAbstractTableModel(parent) {}
|
||||||
virtual ~MimeTypeSettingsModel() {}
|
virtual ~MimeTypeSettingsModel() {}
|
||||||
|
|
||||||
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
virtual QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const override;
|
int role = Qt::DisplayRole) const override;
|
||||||
virtual QVariant data(const QModelIndex &modelIndex, int role = Qt::DisplayRole) const override;
|
QVariant data(const QModelIndex &modelIndex, int role = Qt::DisplayRole) const override;
|
||||||
|
|
||||||
void load();
|
void load();
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public:
|
|||||||
DescriptionEditorWidget(QWidget *parent = nullptr);
|
DescriptionEditorWidget(QWidget *parent = nullptr);
|
||||||
~DescriptionEditorWidget() override;
|
~DescriptionEditorWidget() override;
|
||||||
|
|
||||||
virtual QSize sizeHint() const override;
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setDisplaySettings(const DisplaySettings &ds) override;
|
void setDisplaySettings(const DisplaySettings &ds) override;
|
||||||
|
|||||||
@@ -57,10 +57,10 @@ namespace Internal {
|
|||||||
class ProFileEditorWidget : public TextEditorWidget
|
class ProFileEditorWidget : public TextEditorWidget
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
virtual void findLinkAt(const QTextCursor &,
|
void findLinkAt(const QTextCursor &,
|
||||||
Utils::ProcessLinkCallback &&processLinkCallback,
|
Utils::ProcessLinkCallback &&processLinkCallback,
|
||||||
bool resolveTarget = true,
|
bool resolveTarget = true,
|
||||||
bool inNextSplit = false) override;
|
bool inNextSplit = false) override;
|
||||||
void contextMenuEvent(QContextMenuEvent *) override;
|
void contextMenuEvent(QContextMenuEvent *) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void contextMenuRequested(const QPoint &pos, int index);
|
void contextMenuRequested(const QPoint &pos, int index);
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *object, QEvent *event) override final;
|
bool eventFilter(QObject *object, QEvent *event) final;
|
||||||
private:
|
private:
|
||||||
int m_tabIndexForMiddleClick = -1;
|
int m_tabIndexForMiddleClick = -1;
|
||||||
};
|
};
|
||||||
@@ -112,7 +112,7 @@ class ComboBox : public QComboBox
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void showPopup() override final;
|
void showPopup() final;
|
||||||
signals:
|
signals:
|
||||||
void opened();
|
void opened();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user