diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-19 16:22:31 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-23 09:22:48 +0200 |
commit | d104161c1e29c51c83fb34be13871350be124df9 (patch) | |
tree | e26841da81a6da5faa260d4a5f22a290056d8a0a /xmloff | |
parent | 1ff287067aa6c02963bd25f430bc5ae3910ceebb (diff) |
must use SAL_N_ELEMENTS here
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLIndexTOCContext.cxx | 4 |
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); |