summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@pm.me>2024-04-21 13:38:14 +0200
committerArnaud Versini <arnaud.versini@pm.me>2024-04-29 18:45:26 +0200
commit190156976dd4f1c023279eddd1eed61bfd037e7a (patch)
treeaf9478c7178cdfd30fc862736ed131927f144f67 /i18npool
parent716706d6ba38e6dc28067af84cfe8b7e64920914 (diff)
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.versini@pm.me>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx4
1 files changed, 2 insertions, 2 deletions
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("\tcountryDefaultName,\n");
of.writeAsciiString("\tVariant\n");
of.writeAsciiString("};\n\n");
- 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("\tLongDateYearSeparator,\n");
of.writeAsciiString("\tdecimalSeparatorAlternative\n");
of.writeAsciiString("};\n\n");
- of.writeOUStringFunction("getLocaleItem_", "SAL_N_ELEMENTS(LCType)", "LCType");
+ of.writeOUStringFunction("getLocaleItem_", "std::size(LCType)", "LCType");
}