diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-19 16:21:56 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-23 09:22:47 +0200 |
commit | 1ff287067aa6c02963bd25f430bc5ae3910ceebb (patch) | |
tree | 3faddf61e8fed4cc57da04604b3f0b673732dfa7 /xmloff | |
parent | 826f36c28912484ad11c5638e2936a11dd18d885 (diff) |
use SAL_N_ELEMENTS
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLIndexTOCContext.cxx | 2 |
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"); |