Skip to content

Commit

Permalink
Add missing overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 10, 2015
1 parent f3c7d85 commit e2684a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgspixmaplabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ class QgsPixmapLabel : public QLabel
* @param width The width for the widget
* @return An appropriate height
*/
virtual int heightForWidth( int width ) const;
virtual int heightForWidth( int width ) const override;

/**
* An optimal size for the widget. Effectively using the height
* determined from the width with the given aspect ratio.
* @return A size hint
*/
virtual QSize sizeHint() const;
virtual QSize sizeHint() const override;

public slots:
void setPixmap( const QPixmap & );
void resizeEvent( QResizeEvent * );
void resizeEvent( QResizeEvent * ) override;
private:
QPixmap mPixmap;
};
Expand Down
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class QgsOgrProvider : public QgsVectorDataProvider
* E.g. in case a shapefile is replaced, the old file will be closed
* and the new file will be opened.
*/
void forceReload();
void forceReload() override;

protected:
/** Loads fields from input file to member attributeFields */
Expand Down

0 comments on commit e2684a4

Please sign in to comment.