From 7c0d17a7e3b58233ac9232daa6d15fc3ddf21dea Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 25 Oct 2017 11:56:24 +0300 Subject: [PATCH] Cppcheck warning. --HG-- branch : develop --- src/libs/vlayout/vabstractpiece.cpp | 2 +- src/libs/vlayout/vabstractpiece.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vabstractpiece.cpp b/src/libs/vlayout/vabstractpiece.cpp index 1c4ff66c4..5c48a7d81 100644 --- a/src/libs/vlayout/vabstractpiece.cpp +++ b/src/libs/vlayout/vabstractpiece.cpp @@ -992,7 +992,7 @@ bool VAbstractPiece::IsEkvPointOnLine(const VSAPoint &iPoint, const VSAPoint &pr } //--------------------------------------------------------------------------------------------------------------------- -QPainterPath VAbstractPiece::PlaceLabelImgPath(const PlaceLabelImg &img) const +QPainterPath VAbstractPiece::PlaceLabelImgPath(const PlaceLabelImg &img) { QPainterPath path; foreach(const QPolygonF &p, img) diff --git a/src/libs/vlayout/vabstractpiece.h b/src/libs/vlayout/vabstractpiece.h index fff7e847b..e3347c483 100644 --- a/src/libs/vlayout/vabstractpiece.h +++ b/src/libs/vlayout/vabstractpiece.h @@ -195,7 +195,7 @@ protected: static bool IsEkvPointOnLine(const QPointF &iPoint, const QPointF &prevPoint, const QPointF &nextPoint); static bool IsEkvPointOnLine(const VSAPoint &iPoint, const VSAPoint &prevPoint, const VSAPoint &nextPoint); - QPainterPath PlaceLabelImgPath(const PlaceLabelImg &img) const; + static QPainterPath PlaceLabelImgPath(const PlaceLabelImg &img); private: QSharedDataPointer d;