From 180332d279af947520806c795461981d938ab773 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 7 May 2018 18:00:02 +0300 Subject: [PATCH] Refactoring. Removing redundant code. --HG-- branch : develop --- src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp index 979441eaa..1e82def1a 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogpiecepath.cpp @@ -106,11 +106,7 @@ void DialogPiecePath::ChosenObject(quint32 id, const SceneObject &type) { if (not prepare) { - bool reverse = false; - if (QGuiApplication::keyboardModifiers() == Qt::ShiftModifier) - { - reverse = true; - } + const bool reverse = QGuiApplication::keyboardModifiers() == Qt::ShiftModifier; if (id != GetLastId()) { switch (type)