summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-19 16:21:56 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-23 09:22:47 +0200
commit338fdff789b9dae96a8ce29293ab89938622a5d6 (patch)
treeb24cd5d84025aecd235e3d25ec9d6bfd174d118c /xmloff/source
parentdd1cc979ced4ba86ee4a4ffdda040912ac172053 (diff)
use SAL_N_ELEMENTS
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/text/XMLIndexTOCContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx
index f412d1cf91..12343f3434 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -123,7 +123,7 @@ XMLIndexTOCContext::XMLIndexTOCContext(
if (SvXMLUnitConverter::convertEnum(nTmp, rLocalName, aIndexTypeMap))
{
// check for array index:
- OSL_ENSURE(nTmp < (sizeof(aIndexServiceMap)/sizeof(sal_Char*)), "index out of range");
+ OSL_ENSURE(nTmp < (SAL_N_ELEMENTS(aIndexServiceMap)), "index out of range");
OSL_ENSURE(sizeof(aIndexServiceMap) ==
sizeof(aIndexSourceElementMap),
"service and source element maps must be same size");