Skip to content

Commit e2684a4

Browse files
committed
Add missing overrides
1 parent f3c7d85 commit e2684a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gui/qgspixmaplabel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ class QgsPixmapLabel : public QLabel
3434
* @param width The width for the widget
3535
* @return An appropriate height
3636
*/
37-
virtual int heightForWidth( int width ) const;
37+
virtual int heightForWidth( int width ) const override;
3838

3939
/**
4040
* An optimal size for the widget. Effectively using the height
4141
* determined from the width with the given aspect ratio.
4242
* @return A size hint
4343
*/
44-
virtual QSize sizeHint() const;
44+
virtual QSize sizeHint() const override;
4545

4646
public slots:
4747
void setPixmap( const QPixmap & );
48-
void resizeEvent( QResizeEvent * );
48+
void resizeEvent( QResizeEvent * ) override;
4949
private:
5050
QPixmap mPixmap;
5151
};

src/providers/ogr/qgsogrprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class QgsOgrProvider : public QgsVectorDataProvider
268268
* E.g. in case a shapefile is replaced, the old file will be closed
269269
* and the new file will be opened.
270270
*/
271-
void forceReload();
271+
void forceReload() override;
272272

273273
protected:
274274
/** Loads fields from input file to member attributeFields */

0 commit comments

Comments
 (0)