Kaydet (Commit) 660df84c authored tarafından Eike Rathke's avatar Eike Rathke

Use SAL_N_ELEMENTS

Change-Id: I643d839a2b1d8473c484c659793bd3344ace8859
üst 425e06aa
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment