i18npool/source/localedata/LocaleNode.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 190156976dd4f1c023279eddd1eed61bfd037e7a Author: Arnaud VERSINI <arnaud.vers...@pm.me> AuthorDate: Sun Apr 21 13:38:14 2024 +0200 Commit: Arnaud Versini <arnaud.vers...@pm.me> CommitDate: Mon Apr 29 18:45:26 2024 +0200 tdf#147021 : use std::size instead of SAL_N_ELEMENTS in generated code too Change-Id: Ib11a703c0250b1f80b7e79fe24e3bda915e7198b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166385 Tested-by: Jenkins Reviewed-by: Arnaud Versini <arnaud.vers...@pm.me> diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index 809129ab5d50..4aca351fc2c4 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -274,7 +274,7 @@ void LCInfoNode::generateCode (const OFileWriter &of) const of.writeAsciiString(" countryDefaultName, "); of.writeAsciiString(" Variant "); of.writeAsciiString("}; "); - of.writeOUStringFunction("getLCInfo_", "SAL_N_ELEMENTS(LCInfoArray)", "LCInfoArray"); + of.writeOUStringFunction("getLCInfo_", "std::size(LCInfoArray)", "LCInfoArray"); } @@ -503,7 +503,7 @@ void LCCTYPENode::generateCode (const OFileWriter &of) const of.writeAsciiString(" LongDateYearSeparator, "); of.writeAsciiString(" decimalSeparatorAlternative "); of.writeAsciiString("}; "); - of.writeOUStringFunction("getLocaleItem_", "SAL_N_ELEMENTS(LCType)", "LCType"); + of.writeOUStringFunction("getLocaleItem_", "std::size(LCType)", "LCType"); }