From e6082fbbf3894fed7592afbafce45b76e190b996 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 9 Aug 2022 03:19:07 +0300 Subject: [PATCH 29/29] Qt: Drop unused QLabels from help_widget::set_topic_terrain() See osdn #45317 Signed-off-by: Marko Lindqvist --- client/gui-qt/helpdlg.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/gui-qt/helpdlg.cpp b/client/gui-qt/helpdlg.cpp index 3542229e42..4360891573 100644 --- a/client/gui-qt/helpdlg.cpp +++ b/client/gui-qt/helpdlg.cpp @@ -1325,7 +1325,6 @@ void help_widget::set_topic_terrain(const help_item *topic, QLabel *tb; char irrig_buffer[1024]; - tb = new QLabel(this); fc_snprintf(irrig_buffer, sizeof(irrig_buffer), PL_("%d turn", "%d turns", pterrain->irrigation_time), pterrain->irrigation_time); @@ -1350,7 +1349,6 @@ void help_widget::set_topic_terrain(const help_item *topic, QLabel *tb; char mine_buffer[1024]; - tb = new QLabel(this); fc_snprintf(mine_buffer, sizeof(mine_buffer), PL_("%d turn", "%d turns", pterrain->mining_time), pterrain->mining_time); @@ -1374,7 +1372,6 @@ void help_widget::set_topic_terrain(const help_item *topic, QLabel *tb; char tf_buffer[1024]; - tb = new QLabel(this); fc_snprintf(tf_buffer, sizeof(tf_buffer), PL_("%d turn", "%d turns", pterrain->transform_time), pterrain->transform_time); -- 2.35.1