diff options
author | Eike Rathke <erack@redhat.com> | 2017-10-25 12:11:29 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-10-25 12:11:43 +0200 |
commit | 660df84c941078ffc281ecc0671a3573a49f4ee4 (patch) | |
tree | 60d2737ab2c247637b3ad23c2f8d38b539f54d81 /i18npool | |
parent | 425e06aa7f8c2ca7fdc179278c848da213e8062d (diff) |
Use SAL_N_ELEMENTS
Change-Id: I643d839a2b1d8473c484c659793bd3344ace8859
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index 9dc9b07ec91b..2c0134448343 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -351,7 +351,7 @@ void LCInfoNode::generateCode (const OFileWriter &of) const of.writeAsciiString("\tcountryDefaultName,\n"); of.writeAsciiString("\tVariant\n"); of.writeAsciiString("};\n\n"); - of.writeFunction("getLCInfo_", "(sizeof(LCInfoArray)/sizeof(LCInfoArray[0]))", "LCInfoArray"); + of.writeFunction("getLCInfo_", "SAL_N_ELEMENTS(LCInfoArray)", "LCInfoArray"); } @@ -574,7 +574,7 @@ void LCCTYPENode::generateCode (const OFileWriter &of) const of.writeAsciiString("\tLongDateMonthSeparator,\n"); of.writeAsciiString("\tLongDateYearSeparator\n"); of.writeAsciiString("};\n\n"); - of.writeFunction("getLocaleItem_", "(sizeof(LCType)/sizeof(LCType[0]))", "LCType"); + of.writeFunction("getLocaleItem_", "SAL_N_ELEMENTS(LCType)", "LCType"); } |