From 8351528cd2d1c635a2926f2f4cf9589bc7460425 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 29 Oct 2022 04:00:42 +0300 Subject: [PATCH 35/35] Qt: Replace magic '0' with A_NONE See osdn #45530 Signed-off-by: Marko Lindqvist --- client/gui-qt/citydlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-qt/citydlg.cpp b/client/gui-qt/citydlg.cpp index 28bd0ae1cc..a87386aafa 100644 --- a/client/gui-qt/citydlg.cpp +++ b/client/gui-qt/citydlg.cpp @@ -3930,7 +3930,7 @@ QString get_tooltip_unit(const struct unit_type *utype, bool ext) // FIXME: Don't give the impression that primary tech is (always) the only one. tech = utype_primary_tech_req(obsolete); obsolete_str = QString(""); - if (tech && tech != advance_by_number(0)) { + if (tech && tech != advance_by_number(A_NONE)) { /* TRANS: this and nearby literal strings are interpreted * as (Qt) HTML */ obsolete_str = obsolete_str + QString(_("Obsoleted by %1 (%2).")) -- 2.35.1