Fixes by clang-tidy

This commit is contained in:
magnesj
2021-04-15 02:14:51 +00:00
committed by Magne Sjaastad
parent 6421564b77
commit a44378e2f5
75 changed files with 91 additions and 91 deletions

View File

@@ -28,7 +28,7 @@ class RiuAbstractOverlayContentFrame : public QFrame
Q_OBJECT
public:
RiuAbstractOverlayContentFrame( QWidget* parent = nullptr );
~RiuAbstractOverlayContentFrame();
~RiuAbstractOverlayContentFrame() override;
virtual void renderTo( QPainter* painter, const QRect& targetRect ) = 0;
};

View File

@@ -37,7 +37,7 @@ class RiuCategoryLegendFrame : public RiuAbstractLegendFrame
public:
RiuCategoryLegendFrame( QWidget* parent, const QString& title, caf::CategoryMapper* categoryMapper );
~RiuCategoryLegendFrame();
~RiuCategoryLegendFrame() override;
private:
void layoutInfo( LayoutInfo* layout ) const override;

View File

@@ -52,7 +52,7 @@ class RiuGridCrossQwtPlot : public RiuQwtPlotWidget
public:
RiuGridCrossQwtPlot( RimGridCrossPlot* crossPlot, QWidget* parent = nullptr );
~RiuGridCrossQwtPlot();
~RiuGridCrossQwtPlot() override;
RiuGridCrossQwtPlot( const RiuGridCrossQwtPlot& ) = delete;

View File

@@ -79,7 +79,7 @@ class RiuMainWindow : public RiuMainWindowBase
public:
RiuMainWindow();
~RiuMainWindow();
~RiuMainWindow() override;
static RiuMainWindow* instance();

View File

@@ -108,7 +108,7 @@ protected:
std::pair<int, int> rowAndColumnCount( int plotWidgetCount ) const;
virtual void onSelectionManagerSelectionChanged( const std::set<int>& changedSelectionLevels ) override;
void onSelectionManagerSelectionChanged( const std::set<int>& changedSelectionLevels ) override;
virtual bool showYAxis( int row, int column ) const;

View File

@@ -57,7 +57,7 @@ class RiuPlotMainWindow : public RiuMainWindowBase
public:
RiuPlotMainWindow();
~RiuPlotMainWindow();
~RiuPlotMainWindow() override;
QString mainWindowName() override;

View File

@@ -27,5 +27,5 @@ public:
QssSyntaxHighligter( QTextDocument* parent );
protected:
virtual void highlightBlock( const QString& text );
void highlightBlock( const QString& text ) override;
};

View File

@@ -33,7 +33,7 @@ class RiuQtChartView : public QtCharts::QChartView, public RiuInterfaceToViewWin
{
public:
RiuQtChartView( RimPlotWindow* plotWindow, QWidget* parent = nullptr );
virtual ~RiuQtChartView();
~RiuQtChartView() override;
RimViewWindow* ownerViewWindow() const override;

View File

@@ -41,7 +41,7 @@ public:
public:
RiuScalarMapperLegendFrame( QWidget* parent, const QString& title, cvf::ScalarMapper* scalarMapper );
~RiuScalarMapperLegendFrame();
~RiuScalarMapperLegendFrame() override;
void setTickPrecision( int precision );
void setTickFormat( NumberFormat format );

View File

@@ -26,7 +26,7 @@ class TextEditWithCompletion : public QTextEdit
Q_OBJECT
public:
TextEditWithCompletion( QWidget* parent = nullptr );
~TextEditWithCompletion();
~TextEditWithCompletion() override;
void setCompleter( QCompleter* completer );
QCompleter* completer();