summaryrefslogtreecommitdiff
path: root/configmgr/source/xmlreader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/xmlreader.cxx')
-rw-r--r--configmgr/source/xmlreader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/xmlreader.cxx b/configmgr/source/xmlreader.cxx
index c3851763956f..4865c87cf81a 100644
--- a/configmgr/source/xmlreader.cxx
+++ b/configmgr/source/xmlreader.cxx
@@ -430,7 +430,7 @@ XmlReader::Namespace XmlReader::scanNamespaceIri(
XmlReader::NAMESPACE_XSI },
{ RTL_CONSTASCII_STRINGPARAM("http://www.w3.org/XML/1998/namespace"),
XmlReader::NAMESPACE_XML } };
- for (std::size_t i = 0; i < sizeof iris / sizeof iris[0]; ++i) {
+ for (std::size_t i = 0; i < SAL_N_ELEMENTS( iris ); ++i) {
if (rtl_str_compare_WithLength(
iri.begin, iri.length, iris[i].begin, iris[i].length) ==
0)
@@ -550,7 +550,7 @@ char const * XmlReader::handleReference(char const * position, char const * end)
RTL_CONSTASCII_STRINGPARAM("'") },
{ RTL_CONSTASCII_STRINGPARAM("quot;"),
RTL_CONSTASCII_STRINGPARAM("\"") } };
- for (std::size_t i = 0; i < sizeof refs / sizeof refs[0]; ++i) {
+ for (std::size_t i = 0; i < SAL_N_ELEMENTS( refs ); ++i) {
if (rtl_str_shortenedCompare_WithLength(
position, end - position, refs[i].inBegin, refs[i].inLength,
refs[i].inLength) ==