From 09c093f969e24bc4f05eacd071fede3b482a932c Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Fri, 21 Feb 2025 02:33:27 +0900 Subject: [PATCH] Close the Qt namespace even when QT_NO_TRANSLATION is defined Pick-to: 6.8 6.5 Change-Id: I5e463b81f7e73b2946a0e3b3036a09de2105307b Reviewed-by: Thiago Macieira (cherry picked from commit c9c8abb52d4ba77c551513baf678be0761d1c895) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qttranslation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/global/qttranslation.h b/src/corelib/global/qttranslation.h index fb0a2244cc0..b1828ede68b 100644 --- a/src/corelib/global/qttranslation.h +++ b/src/corelib/global/qttranslation.h @@ -37,8 +37,8 @@ Q_CORE_EXPORT QString qtTrId(const char *id, int n = -1); #define QT_TRID_NOOP(id) id #define QT_TRID_N_NOOP(id) id -QT_END_NAMESPACE - #endif // QT_NO_TRANSLATION +QT_END_NAMESPACE + #endif /* QTTRANSLATION_H */