From 9f4ba98a3740c8e78175bdb08b85eefe4ff2ce79 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 29 Oct 2024 11:50:46 +0100 Subject: [PATCH] Tidy up AlphaCode and LanguageCodeEntry in qlocale_data_p.h Open-braces on the two struct definitions were misplaced and a C-comment was a single line so might as well be a C++-comment. Change-Id: I6efd938c25f4bf53d4e0589886bc5cc8e4d282af Reviewed-by: Thiago Macieira Reviewed-by: Juha Vuolle --- src/corelib/text/qlocale_data_p.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/corelib/text/qlocale_data_p.h b/src/corelib/text/qlocale_data_p.h index 016e1201706..ed0d5c6929b 100644 --- a/src/corelib/text/qlocale_data_p.h +++ b/src/corelib/text/qlocale_data_p.h @@ -24,10 +24,9 @@ QT_BEGIN_NAMESPACE -/* - Storage for alpha codes with length of up to 4 allowing efficient comparison. -*/ -struct AlphaCode { +// Storage for alpha codes, with length of up to 4, supporting efficient comparison. +struct AlphaCode +{ constexpr AlphaCode(char c1 = 0, char c2 = 0, char c3 = 0) : c1(c2m(c1)), c2(c2m(c2)), c3(c2m(c3)), reserved(0) { } @@ -50,7 +49,8 @@ private: } }; -struct LanguageCodeEntry { +struct LanguageCodeEntry +{ AlphaCode part1; AlphaCode part2B; AlphaCode part2T;