From bf7c73d9f98d9679baa705f99b229ba3207e9f14 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 4 Sep 2022 12:39:44 +0300 Subject: [PATCH 66/66] Qt: Drop unused 'sbool' variable From fc_client::slot_selection_changed() See osdn #45539 Signed-off-by: Marko Lindqvist --- client/gui-qt/pages.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/gui-qt/pages.cpp b/client/gui-qt/pages.cpp index bc3a3fbdc5..e79ee80f68 100644 --- a/client/gui-qt/pages.cpp +++ b/client/gui-qt/pages.cpp @@ -1133,7 +1133,6 @@ void fc_client::start_from_save() void fc_client::slot_selection_changed(const QItemSelection &selected, const QItemSelection &deselected) { - QModelIndexList indexes = selected.indexes(); QStringList sl; QModelIndex index; @@ -1233,7 +1232,6 @@ void fc_client::slot_selection_changed(const QItemSelection &selected, if ((sf = secfile_load_section(fn_bytes.data(), "game", TRUE))) { const char *sname; - bool sbool; int integer; QString final_str; QString pl_str = nullptr; @@ -1260,9 +1258,9 @@ void fc_client::slot_selection_changed(const QItemSelection &selected, pl_bytes = pl_str.toLocal8Bit(); if ((sf = secfile_load_section(fn_bytes.data(), pl_bytes.data(), true))) { - if (!(sbool = secfile_lookup_bool_default(sf, true, - "player%d.unassigned_user", - i))) { + if (!secfile_lookup_bool_default(sf, true, + "player%d.unassigned_user", + i)) { curr_player = i; break; } -- 2.35.1