From 33865a06b5826125295760acd11db34723c630a9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 9 May 2020 13:25:23 +0300 Subject: [PATCH] Cppcheck warnings. --- src/app/puzzle/vpuzzlepiece.cpp | 4 ++-- src/app/puzzle/vpuzzlepiece.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/puzzle/vpuzzlepiece.cpp b/src/app/puzzle/vpuzzlepiece.cpp index 21daa67a2..5a1bc0d7d 100644 --- a/src/app/puzzle/vpuzzlepiece.cpp +++ b/src/app/puzzle/vpuzzlepiece.cpp @@ -81,7 +81,7 @@ void VPuzzlePiece::SetCuttingLine(const QVector &cuttingLine) //--------------------------------------------------------------------------------------------------------------------- -bool VPuzzlePiece::GetShowSeamLine() +bool VPuzzlePiece::GetShowSeamLine() const { return m_showSeamline; } @@ -93,7 +93,7 @@ void VPuzzlePiece::SetShowSeamLine(bool value) } //--------------------------------------------------------------------------------------------------------------------- -bool VPuzzlePiece::GetPieceMirrored() +bool VPuzzlePiece::GetPieceMirrored() const { return m_mirrorPiece; } diff --git a/src/app/puzzle/vpuzzlepiece.h b/src/app/puzzle/vpuzzlepiece.h index 55d0f3fd8..b126deeb2 100644 --- a/src/app/puzzle/vpuzzlepiece.h +++ b/src/app/puzzle/vpuzzlepiece.h @@ -69,7 +69,7 @@ public: * @brief GetShowSeamLine returns wether the seam line of the piece has to be shown or not * @return true if the seamline has to be shown */ - bool GetShowSeamLine(); + bool GetShowSeamLine() const; /** * @brief SetShowSeamLine sets wether the seam line of the piece has to be shown or not @@ -81,7 +81,7 @@ public: * @brief GetMirrorPiece returns wether the piece is mirrored or not * @return true if the piece is mirrored */ - bool GetPieceMirrored(); + bool GetPieceMirrored() const; /** * @brief SetMirrorPiece sets wether the piece is mirrored or not