summaryrefslogtreecommitdiff
path: root/xmloff
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
commit1ff287067aa6c02963bd25f430bc5ae3910ceebb (patch)
tree3faddf61e8fed4cc57da04604b3f0b673732dfa7 /xmloff
parent826f36c28912484ad11c5638e2936a11dd18d885 (diff)
use SAL_N_ELEMENTS
Diffstat (limited to 'xmloff')
-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 fd82a5f8f082..639725add792 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");