Kaydet (Commit) 4b08e986 authored tarafından Michael Stahl's avatar Michael Stahl

xmloff: convert legacy assertions in SvXMLAutoStylePoolP

Change-Id: Ibf3afcfb3f4dc400faa18a726ec47d58a230de65
üst f7f48dd4
...@@ -44,11 +44,11 @@ namespace ...@@ -44,11 +44,11 @@ namespace
static void lcl_exportDataStyle( SvXMLExport& _rExport, const rtl::Reference< XMLPropertySetMapper >& _rxMapper, static void lcl_exportDataStyle( SvXMLExport& _rExport, const rtl::Reference< XMLPropertySetMapper >& _rxMapper,
const XMLPropertyState& _rProperty ) const XMLPropertyState& _rProperty )
{ {
DBG_ASSERT( _rxMapper.is(), "xmloff::lcl_exportDataStyle: invalid property mapper!" ); assert(_rxMapper.is());
// obtain the data style name // obtain the data style name
OUString sDataStyleName; OUString sDataStyleName;
_rProperty.maValue >>= sDataStyleName; _rProperty.maValue >>= sDataStyleName;
DBG_ASSERT( !sDataStyleName.isEmpty(), "xmloff::lcl_exportDataStyle: invalid property value for the data style name!" ); assert(!sDataStyleName.isEmpty() && "xmloff::lcl_exportDataStyle: invalid property value for the data style name!");
// add the attribute // add the attribute
_rExport.AddAttribute( _rExport.AddAttribute(
...@@ -88,7 +88,7 @@ void SvXMLAutoStylePoolP::exportStyleAttributes( ...@@ -88,7 +88,7 @@ void SvXMLAutoStylePoolP::exportStyleAttributes(
if( (XML_STYLE_FAMILY_SD_GRAPHICS_ID == nFamily) || (XML_STYLE_FAMILY_SD_PRESENTATION_ID == nFamily) ) if( (XML_STYLE_FAMILY_SD_GRAPHICS_ID == nFamily) || (XML_STYLE_FAMILY_SD_PRESENTATION_ID == nFamily) )
{ // it's a graphics style { // it's a graphics style
rtl::Reference< XMLPropertySetMapper > aPropertyMapper = rPropExp.getPropertySetMapper(); rtl::Reference< XMLPropertySetMapper > aPropertyMapper = rPropExp.getPropertySetMapper();
DBG_ASSERT(aPropertyMapper.is(), "SvXMLAutoStylePoolP::exportStyleAttributes: invalid property set mapper!"); assert(aPropertyMapper.is());
bool bFoundControlShapeDataStyle = false; bool bFoundControlShapeDataStyle = false;
bool bFoundNumberingRulesName = false; bool bFoundNumberingRulesName = false;
...@@ -322,8 +322,7 @@ void SvXMLAutoStylePoolP::RegisterNames( ...@@ -322,8 +322,7 @@ void SvXMLAutoStylePoolP::RegisterNames(
uno::Sequence<sal_Int32>& aFamilies, uno::Sequence<sal_Int32>& aFamilies,
uno::Sequence<OUString>& aNames ) uno::Sequence<OUString>& aNames )
{ {
DBG_ASSERT( aFamilies.getLength() == aNames.getLength(), assert(aFamilies.getLength() == aNames.getLength());
"aFamilies != aNames" );
// iterate over sequence(s) and call RegisterName(..) for each pair // iterate over sequence(s) and call RegisterName(..) for each pair
const sal_Int32* pFamilies = aFamilies.getConstArray(); const sal_Int32* pFamilies = aFamilies.getConstArray();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment