Cppcheck warnings.

This commit is contained in:
Roman Telezhynskyi 2020-11-10 16:10:38 +02:00
parent 0371905c0d
commit 453d120150
5 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ class VPCarrouselPieceList : public QListWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
VPCarrouselPieceList(QWidget* parent); explicit VPCarrouselPieceList(QWidget* parent);
~VPCarrouselPieceList(); ~VPCarrouselPieceList();
/** /**

View File

@ -41,7 +41,7 @@ public:
~VPGraphicsSheet(); ~VPGraphicsSheet();
QRectF boundingRect() const override; QRectF boundingRect() const override;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *item, QWidget *widget) override; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
QRectF GetSheetRect() const; QRectF GetSheetRect() const;

View File

@ -42,7 +42,7 @@ class VPPiece : public QObject, public VLayoutPiece
Q_OBJECT Q_OBJECT
public: public:
VPPiece(); VPPiece();
VPPiece(VLayoutPiece layoutPiece); explicit VPPiece(VLayoutPiece layoutPiece);
~VPPiece(); ~VPPiece();

View File

@ -149,7 +149,7 @@ void VGraphicsSimpleTextItem::SetShowParentTooltip(bool show)
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VGraphicsSimpleTextItem::SetRealPos(QPointF pos) void VGraphicsSimpleTextItem::SetRealPos(const QPointF &pos)
{ {
m_realPos = pos; m_realPos = pos;

View File

@ -63,7 +63,7 @@ public:
void SetShowParentTooltip(bool show); void SetShowParentTooltip(bool show);
void SetRealPos(QPointF pos); void SetRealPos(const QPointF &pos);
QColor BaseColor() const; QColor BaseColor() const;
void SetBaseColor(const QColor &baseColor); void SetBaseColor(const QColor &baseColor);