From 962b5dd561d4e2e85f4d22d02c7df6fe493f9826 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 27 May 2021 20:58:18 +0300 Subject: [PATCH] Cppcheck warning. --- src/libs/vlayout/vlayoutpiece.cpp | 2 +- src/libs/vlayout/vlayoutpiece.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index f6e72ec56..7b24260cd 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -1182,7 +1182,7 @@ QPainterPath VLayoutPiece::MappedLayoutAllowancePath() const } //--------------------------------------------------------------------------------------------------------------------- -void VLayoutPiece::DrawMiniature(QPainter &painter) +void VLayoutPiece::DrawMiniature(QPainter &painter) const { painter.drawPath(ContourPath()); diff --git a/src/libs/vlayout/vlayoutpiece.h b/src/libs/vlayout/vlayoutpiece.h index 96eaaddf3..5012c8392 100644 --- a/src/libs/vlayout/vlayoutpiece.h +++ b/src/libs/vlayout/vlayoutpiece.h @@ -154,7 +154,7 @@ public: QPainterPath ContourPath() const; QPainterPath MappedLayoutAllowancePath() const; - void DrawMiniature(QPainter &painter); + void DrawMiniature(QPainter &painter) const; Q_REQUIRED_RESULT QGraphicsItem *GetItem(bool textAsPaths) const;