From cd84fffd506e7d681d6542f979045691c49bbd8c Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 6 May 2015 15:06:27 +0200 Subject: xmloff: assert existence of XMLPropertyHandler Change-Id: I2554c77245eb2c22201b6e680ab42db666b2ee8b --- xmloff/source/style/xmlprmap.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/style/xmlprmap.cxx b/xmloff/source/style/xmlprmap.cxx index dcc9c28e4be1..c1302b46a264 100644 --- a/xmloff/source/style/xmlprmap.cxx +++ b/xmloff/source/style/xmlprmap.cxx @@ -86,6 +86,7 @@ XMLPropertySetMapperEntry_Impl::XMLPropertySetMapperEntry_Impl( bImportOnly( rMapEntry.mbImportOnly), pHdl( rFactory->GetPropertyHandler( rMapEntry.mnType & MID_FLAG_MASK ) ) { + assert(pHdl); } XMLPropertySetMapperEntry_Impl::XMLPropertySetMapperEntry_Impl( @@ -99,7 +100,7 @@ XMLPropertySetMapperEntry_Impl::XMLPropertySetMapperEntry_Impl( bImportOnly( rEntry.bImportOnly), pHdl( rEntry.pHdl) { - DBG_ASSERT( pHdl, "Unknown XML property type handler!" ); + assert(pHdl); } struct XMLPropertySetMapper::Impl @@ -239,7 +240,7 @@ bool XMLPropertySetMapper::exportXML( const XMLPropertyHandler* pHdl = GetPropertyHandler( rProperty.mnIndex ); - DBG_ASSERT( pHdl, "Unknown XML Type!" ); + assert(pHdl); if( pHdl ) bRet = pHdl->exportXML( rStrExpValue, rProperty.maValue, rUnitConverter ); -- cgit