From dde6e73b6fa19f4ce1b8d2d9fef0d1618b32dc1d Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 9 Aug 2022 03:09:50 +0300 Subject: [PATCH 47/47] 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 0ed9fc8bfc..56c2742dee 100644 --- a/client/gui-qt/helpdlg.cpp +++ b/client/gui-qt/helpdlg.cpp @@ -1327,7 +1327,6 @@ void help_widget::set_topic_terrain(const help_item *topic, QLabel *tb; char cult_buffer[1024]; - tb = new QLabel(this); fc_snprintf(cult_buffer, sizeof(cult_buffer), PL_("%d turn", "%d turns", pterrain->cultivate_time), pterrain->cultivate_time); @@ -1350,7 +1349,6 @@ void help_widget::set_topic_terrain(const help_item *topic, QLabel *tb; char plant_buffer[1024]; - tb = new QLabel(this); fc_snprintf(plant_buffer, sizeof(plant_buffer), PL_("%d turn", "%d turns", pterrain->plant_time), pterrain->plant_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