From d3f018798154c442f24331d0a48c999e125473af Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 19 Sep 2022 22:25:13 +0300 Subject: [PATCH 43/43] Qt: Fix fc_shortcuts_dialog::refresh() dead assignment See osdn #45668 Signed-off-by: Marko Lindqvist --- client/gui-qt/shortcuts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/gui-qt/shortcuts.cpp b/client/gui-qt/shortcuts.cpp index a0c78f43c4..fa7ed842ce 100644 --- a/client/gui-qt/shortcuts.cpp +++ b/client/gui-qt/shortcuts.cpp @@ -701,14 +701,14 @@ void fc_shortcuts_dialog::edit_shortcut() void fc_shortcuts_dialog::refresh() { QLayout *layout; - QLayout *sublayout; QLayoutItem *item; QWidget *widget; layout = main_layout; while ((item = layout->takeAt(0))) { - if ((sublayout = item->layout()) != 0) { - } else if ((widget = item->widget()) != 0) { + if (item->layout() != nullptr) { + // Nothing + } else if ((widget = item->widget()) != nullptr) { widget->hide(); delete widget; } else { -- 2.35.1