Cppcheck warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-02 17:05:53 +03:00
parent 218c2cc518
commit 4eaf556342
3 changed files with 6 additions and 5 deletions

View File

@ -472,11 +472,11 @@ QVector<QPainterPath> VPiece::CurvesPainterPath(const VContainer *data) const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
QPainterPath VPiece::MainPathPath(const VContainer *data) const QPainterPath VPiece::MainPathPath(const VContainer *data) const
{ {
return MainPathPath(MainPathPoints(data)); return VPiece::MainPathPath(MainPathPoints(data));
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
QPainterPath VPiece::MainPathPath(const QVector<QPointF> &points) const QPainterPath VPiece::MainPathPath(const QVector<QPointF> &points)
{ {
QPainterPath path; QPainterPath path;

View File

@ -76,8 +76,9 @@ public:
QVector<QPainterPath> CurvesPainterPath(const VContainer *data) const; QVector<QPainterPath> CurvesPainterPath(const VContainer *data) const;
QPainterPath MainPathPath(const VContainer *data) const; QPainterPath MainPathPath(const VContainer *data) const;
QPainterPath MainPathPath(const QVector<QPointF> &points) const; static QPainterPath MainPathPath(const QVector<QPointF> &points);
QPainterPath SeamAllowancePath(const VContainer *data) const; QPainterPath SeamAllowancePath(const VContainer *data) const;
QPainterPath SeamAllowancePath(const QVector<QPointF> &points) const; QPainterPath SeamAllowancePath(const QVector<QPointF> &points) const;
QPainterPath PassmarksPath(const VContainer *data, QPainterPath PassmarksPath(const VContainer *data,

View File

@ -63,7 +63,7 @@ void VisToolPiece::RefreshGeometry()
{ {
m_cachedCurvesPath = m_piece.CurvesPainterPath(Visualization::data); m_cachedCurvesPath = m_piece.CurvesPainterPath(Visualization::data);
m_cachedMainPathPoints = m_piece.MainPathPoints(Visualization::data); m_cachedMainPathPoints = m_piece.MainPathPoints(Visualization::data);
m_cachedMainPath = m_piece.MainPathPath(m_cachedMainPathPoints); m_cachedMainPath = VPiece::MainPathPath(m_cachedMainPathPoints);
} }
else else
{ {