summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlnume.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-06-12 11:39:15 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-17 06:39:30 +0000
commite6c004dd9f24c32f5e7468182a5e8d42293ec7b6 (patch)
tree7128862b7cfe1770d07ef2b3613a52ea26b410c6 /xmloff/source/style/xmlnume.cxx
parent9c79945ca62b18213728cdd23d9f390304aee1de (diff)
convert DBG_ASSERT in xmloff
Change-Id: I2f4bbbef451026fc34638e17fa29b6db2c14d850 Reviewed-on: https://gerrit.libreoffice.org/26191 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/style/xmlnume.cxx')
-rw-r--r--xmloff/source/style/xmlnume.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx
index abd982f95900..a52c40316f49 100644
--- a/xmloff/source/style/xmlnume.cxx
+++ b/xmloff/source/style/xmlnume.cxx
@@ -239,7 +239,7 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel,
if( bOutline && (NumberingType::CHAR_SPECIAL == eType ||
NumberingType::BITMAP == eType) )
{
- DBG_ASSERT( !bOutline,
+ SAL_WARN_IF( bOutline, "xmloff",
"SvxXMLNumRuleExport::exportLevelStyle: invalid style for outline" );
return;
}
@@ -315,7 +315,7 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel,
}
else
{
- DBG_ASSERT( !xBitmap.is(),
+ SAL_WARN_IF( xBitmap.is(), "xmloff",
"embedded images are not supported by now" );
}
}
@@ -728,12 +728,12 @@ void SvxXMLNumRuleExport::exportOutline()
{
Reference< XChapterNumberingSupplier > xCNSupplier( GetExport().GetModel(),
UNO_QUERY );
- DBG_ASSERT( xCNSupplier.is(), "no chapter numbering supplier" );
+ SAL_WARN_IF( !xCNSupplier.is(), "xmloff", "no chapter numbering supplier" );
if( xCNSupplier.is() )
{
Reference< XIndexReplace > xNumRule( xCNSupplier->getChapterNumberingRules() );
- DBG_ASSERT( xNumRule.is(), "no chapter numbering rules" );
+ SAL_WARN_IF( !xNumRule.is(), "xmloff", "no chapter numbering rules" );
if( xNumRule.is() )
{
@@ -793,11 +793,11 @@ void SvxXMLNumRuleExport::exportStyles( bool bUsed,
exportOutline();
Reference< XStyleFamiliesSupplier > xFamiliesSupp( GetExport().GetModel(), UNO_QUERY );
- DBG_ASSERT( xFamiliesSupp.is(), "No XStyleFamiliesSupplier from XModel for export!" );
+ SAL_WARN_IF( !xFamiliesSupp.is(), "xmloff", "No XStyleFamiliesSupplier from XModel for export!" );
if( xFamiliesSupp.is() )
{
Reference< XNameAccess > xFamilies( xFamiliesSupp->getStyleFamilies() );
- DBG_ASSERT( xFamiliesSupp.is(), "getStyleFamilies() from XModel failed for export!" );
+ SAL_WARN_IF( !xFamiliesSupp.is(), "xmloff", "getStyleFamilies() from XModel failed for export!" );
if( xFamilies.is() )
{
@@ -808,7 +808,7 @@ void SvxXMLNumRuleExport::exportStyles( bool bUsed,
{
xFamilies->getByName( aNumberStyleName ) >>= xStyles;
- DBG_ASSERT( xStyles.is(), "Style not found for export!" );
+ SAL_WARN_IF( !xStyles.is(), "xmloff", "Style not found for export!" );
if( xStyles.is() )
{