Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix warnings:
fix -Winconsistent-missing-override
fix -Wself-assign
  • Loading branch information
wwmayer committed Aug 28, 2019
1 parent f5b7f3b commit 9d95936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Mod/TechDraw/Gui/QGIFace.h
Expand Up @@ -55,10 +55,10 @@ class QGIFace : public QGIPrimPath
~QGIFace();

enum {Type = QGraphicsItem::UserType + 104};
int type() const { return Type;}
QRectF boundingRect() const;
QPainterPath shape() const;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
int type() const override { return Type;}
QRectF boundingRect() const override;
QPainterPath shape() const override;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) override;

public:
enum fillMode {
Expand Down
1 change: 0 additions & 1 deletion src/Mod/TechDraw/Gui/QGITile.cpp
Expand Up @@ -229,7 +229,6 @@ void QGITile::makeText(void)
m_qgTextC->setPlainText(m_textC);
m_qgTextC->setColor(m_colCurrent);
double textHeightC = m_qgTextC->boundingRect().height();
textHeightC = textHeightC;
if (m_row < 0) { // below line
vOffset = m_high * (1 + verticalFudge);
} else {
Expand Down

0 comments on commit 9d95936

Please sign in to comment.