From 272a8afa60fe9a6b497c69a58b0054ad5b880690 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 12 Jun 2016 14:42:51 +0200 Subject: convert more DBG_ASSERT(false to SAL_WARN Change-Id: Ie52f28f28c67a91c4d3d4517d5c6a466890c7a55 Reviewed-on: https://gerrit.libreoffice.org/26195 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/chart/XMLChartStyleContext.cxx | 2 +- xmloff/source/style/xmlbahdl.cxx | 4 ++-- xmloff/source/text/XMLTextNumRuleInfo.cxx | 4 ++-- xmloff/source/text/txtparae.cxx | 4 ++-- xmloff/source/text/txtprhdl.cxx | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/chart/XMLChartStyleContext.cxx b/xmloff/source/chart/XMLChartStyleContext.cxx index a3fc7a829948..17fa381cccb7 100644 --- a/xmloff/source/chart/XMLChartStyleContext.cxx +++ b/xmloff/source/chart/XMLChartStyleContext.cxx @@ -99,7 +99,7 @@ void XMLChartStyleContext::FillPropertySet( } catch( beans::UnknownPropertyException& ) { - DBG_ASSERT( false, "unknown property exception -> shape style not completely imported for chart style" ); + SAL_WARN( "xmloff", "unknown property exception -> shape style not completely imported for chart style" ); } lcl_NumberFormatStyleToProperty( msDataStyleName, "NumberFormat", mrStyles, rPropSet ); diff --git a/xmloff/source/style/xmlbahdl.cxx b/xmloff/source/style/xmlbahdl.cxx index 7516bff70d31..6ae285f78ad8 100644 --- a/xmloff/source/style/xmlbahdl.cxx +++ b/xmloff/source/style/xmlbahdl.cxx @@ -800,13 +800,13 @@ XMLCompareOnlyPropHdl::~XMLCompareOnlyPropHdl() bool XMLCompareOnlyPropHdl::importXML( const OUString&, Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "importXML called for compare-only-property" ); + SAL_WARN( "xmloff", "importXML called for compare-only-property" ); return false; } bool XMLCompareOnlyPropHdl::exportXML( OUString&, const Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "exportXML called for compare-only-property" ); + SAL_WARN( "xmloff", "exportXML called for compare-only-property" ); return false; } diff --git a/xmloff/source/text/XMLTextNumRuleInfo.cxx b/xmloff/source/text/XMLTextNumRuleInfo.cxx index a31f13dc2a8f..1f4e60f0278d 100644 --- a/xmloff/source/text/XMLTextNumRuleInfo.cxx +++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx @@ -94,7 +94,7 @@ void XMLTextNumRuleInfo::Set( // Assertion saving writer document (#i97312#) if ( mxNumRules.is() && mxNumRules->getCount() < 1 ) { - DBG_ASSERT( false, + SAL_WARN("xmloff", " - numbering rules instance does not contain any numbering rule" ); Reset(); return; @@ -102,7 +102,7 @@ void XMLTextNumRuleInfo::Set( if ( mnListLevel < 0 ) { - DBG_ASSERT( false, + SAL_WARN("xmloff", " - unexpected numbering level" ); Reset(); return; diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 340c06de9ad8..4c3aa297a7dc 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -3148,14 +3148,14 @@ void XMLTextParagraphExport::_exportTextGraphic( void XMLTextParagraphExport::_collectTextEmbeddedAutoStyles(const Reference < XPropertySet > & ) { - DBG_ASSERT( false, "no API implementation avialable" ); + SAL_WARN( "xmloff", "no API implementation avialable" ); } void XMLTextParagraphExport::_exportTextEmbedded( const Reference < XPropertySet > &, const Reference < XPropertySetInfo > & ) { - DBG_ASSERT( false, "no API implementation avialable" ); + SAL_WARN( "xmloff", "no API implementation avialable" ); } void XMLTextParagraphExport::exportEvents( const Reference < XPropertySet > & rPropSet ) diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx index 30038929c116..f03edd6eba76 100644 --- a/xmloff/source/text/txtprhdl.cxx +++ b/xmloff/source/text/txtprhdl.cxx @@ -303,7 +303,7 @@ bool XMLDropCapPropHdl_Impl::importXML( Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "drop caps are an element import property" ); + SAL_WARN( "xmloff", "drop caps are an element import property" ); return false; } @@ -312,7 +312,7 @@ bool XMLDropCapPropHdl_Impl::exportXML( const Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "drop caps are an element export property" ); + SAL_WARN( "xmloff", "drop caps are an element export property" ); return false; } @@ -710,7 +710,7 @@ bool XMLTextColumnsPropertyHandler::importXML( Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "columns are an element import property" ); + SAL_WARN( "xmloff", "columns are an element import property" ); return false; } @@ -719,7 +719,7 @@ bool XMLTextColumnsPropertyHandler::exportXML( const Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "columns are an element export property" ); + SAL_WARN( "xmloff", "columns are an element export property" ); return false; } @@ -760,7 +760,7 @@ bool XMLHoriMirrorPropHdl_Impl::exportXML( const Any&, const SvXMLUnitConverter& ) const { - DBG_ASSERT( false, "HorMirror properyt shouldn't be exported" ); + SAL_WARN( "xmloff", "HorMirror properyt shouldn't be exported" ); return false; } -- cgit