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
public:
VPCarrouselPieceList(QWidget* parent);
explicit VPCarrouselPieceList(QWidget* parent);
~VPCarrouselPieceList();
/**

View File

@ -41,7 +41,7 @@ public:
~VPGraphicsSheet();
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;

View File

@ -42,7 +42,7 @@ class VPPiece : public QObject, public VLayoutPiece
Q_OBJECT
public:
VPPiece();
VPPiece(VLayoutPiece layoutPiece);
explicit VPPiece(VLayoutPiece layoutPiece);
~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;

View File

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