summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-06 15:06:27 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-06 16:18:25 +0200
commitcd84fffd506e7d681d6542f979045691c49bbd8c (patch)
tree6ffcaf2ab8254fffdecb53dfbe00171f346d6526 /xmloff
parent0252f24c9212456077c88853ab09c3f7417f3738 (diff)
xmloff: assert existence of XMLPropertyHandler
Change-Id: I2554c77245eb2c22201b6e680ab42db666b2ee8b
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlprmap.cxx5
1 files changed, 3 insertions, 2 deletions
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 );