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 | 8279868bb177cdfc07f3eeed380412616e4958db (patch) | |
tree | 5f138b0608affff85602ab4dabc641651508fb72 /configmgr | |
parent | 939cd5666cb104ccaad67863258f9a67bb01434b (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 c385176395..4865c87cf8 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) == |