diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-10-14 21:14:52 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-14 21:15:24 +0100 |
commit | b7c82daa28526c566047e158ab2ace522fc442dc (patch) | |
tree | c71f33ee622add8de9013a170a7463ed564ad6e8 /configmgr | |
parent | 1b0c6da1c3bcc6a9c1412d221d029885f9998fa1 (diff) |
Switch to use SAL_N_ELEMENTS macro, everywhere
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/xmlreader.cxx | 4 |
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) == |