Skip to content

Commit 30a83e1

Browse files
committedJul 25, 2017
Add some missing overrides
1 parent 213064a commit 30a83e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/core/layout/qgslayoutitem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class CORE_EXPORT QgsLayoutItem : public QgsLayoutObject, public QGraphicsRectIt
8585
* Return correct graphics item type
8686
* \see stringType()
8787
*/
88-
virtual int type() const = 0;
88+
virtual int type() const override = 0;
8989

9090
/**
9191
* Return the item type as a string.

‎src/core/layout/qgslayoutitemregistry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ class TestLayoutItem : public QgsLayoutItem
271271
~TestLayoutItem() {}
272272

273273
//implement pure virtual methods
274-
int type() const { return QgsLayoutItemRegistry::LayoutItem + 102; }
274+
int type() const override { return QgsLayoutItemRegistry::LayoutItem + 102; }
275275
QString stringType() const override { return QStringLiteral( "ItemTest" ); }
276-
void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = nullptr );
276+
void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = nullptr ) override;
277277

278278
private:
279279
QColor mColor;

0 commit comments

Comments
 (0)
Please sign in to comment.