From e9f44d01e9f317945bf8645e006a184019effcf9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 23 Apr 2020 18:09:48 +0300 Subject: [PATCH] Cppcheck warning. --- src/app/puzzle/vpuzzlelayout.cpp | 2 +- src/app/puzzle/vpuzzlelayout.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/puzzle/vpuzzlelayout.cpp b/src/app/puzzle/vpuzzlelayout.cpp index d11f49f65..e1f7603cc 100644 --- a/src/app/puzzle/vpuzzlelayout.cpp +++ b/src/app/puzzle/vpuzzlelayout.cpp @@ -175,7 +175,7 @@ void VPuzzleLayout::SetFollowGrainline(FollowGrainline state) } //--------------------------------------------------------------------------------------------------------------------- -FollowGrainline VPuzzleLayout::SetFollowGrainline() +FollowGrainline VPuzzleLayout::GetFollowGrainline() const { return m_followGrainLine; } diff --git a/src/app/puzzle/vpuzzlelayout.h b/src/app/puzzle/vpuzzlelayout.h index ea55ee170..ba4821c46 100644 --- a/src/app/puzzle/vpuzzlelayout.h +++ b/src/app/puzzle/vpuzzlelayout.h @@ -134,8 +134,8 @@ public: */ QMarginsF GetLayoutMarginsConverted() const; - void SetFollowGrainline(FollowGrainline state); - FollowGrainline SetFollowGrainline(); + void SetFollowGrainline(FollowGrainline state); + FollowGrainline GetFollowGrainline() const; /** * @brief SetPiecesGap sets the pieces gap to the given value, the unit has to be in Unit::Px