summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/text/XMLIndexTOCContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx
index 639725add792..c1285af4e751 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -124,8 +124,8 @@ XMLIndexTOCContext::XMLIndexTOCContext(
{
// check for array index:
OSL_ENSURE(nTmp < (SAL_N_ELEMENTS(aIndexServiceMap)), "index out of range");
- OSL_ENSURE(sizeof(aIndexServiceMap) ==
- sizeof(aIndexSourceElementMap),
+ OSL_ENSURE(SAL_N_ELEMENTS(aIndexServiceMap) ==
+ SAL_N_ELEMENTS(aIndexSourceElementMap),
"service and source element maps must be same size");
eIndexType = static_cast<IndexTypeEnum>(nTmp);