mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-tidy : Remove redundant 'virtual' and add 'override'
This commit is contained in:
@@ -54,8 +54,8 @@ class PvtQwtPlot : public QwtPlot
|
||||
{
|
||||
public:
|
||||
PvtQwtPlot(QWidget* parent) : QwtPlot(parent) {}
|
||||
virtual QSize sizeHint() const { return QSize(100, 100); }
|
||||
virtual QSize minimumSizeHint() const { return QSize(0, 0); }
|
||||
QSize sizeHint() const override { return QSize(100, 100); }
|
||||
QSize minimumSizeHint() const override { return QSize(0, 0); }
|
||||
};
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
setStateMachine(new QwtPickerTrackerMachine);
|
||||
}
|
||||
|
||||
virtual QwtText trackerText(const QPoint&) const
|
||||
QwtText trackerText(const QPoint&) const override
|
||||
{
|
||||
QwtText text(m_trackerTextProvider->trackerText());
|
||||
text.setRenderFlags(Qt::AlignLeft);
|
||||
|
||||
Reference in New Issue
Block a user