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>
This commit is contained in:
committed by
Arnaud Versini
parent
716706d6ba
commit
190156976d
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user