summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-06-12 14:42:51 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:26:08 -0400
commite873661f6c20389d50ee2d4661b00d111e46f3e5 (patch)
tree724646bac031fa8984ff3f3a6a02a0ab6756045b /xmloff
parentd48ceabd7aef42580d70c680ac863f497b146cca (diff)
convert more DBG_ASSERT(false to SAL_WARN
Reviewed-on: https://gerrit.libreoffice.org/26195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 272a8afa60fe9a6b497c69a58b0054ad5b880690) Change-Id: Ie52f28f28c67a91c4d3d4517d5c6a466890c7a55
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/XMLChartStyleContext.cxx2
-rw-r--r--xmloff/source/style/xmlbahdl.cxx4
-rw-r--r--xmloff/source/text/XMLTextNumRuleInfo.cxx4
-rw-r--r--xmloff/source/text/txtparae.cxx4
-rw-r--r--xmloff/source/text/txtprhdl.cxx10
5 files changed, 12 insertions, 12 deletions
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 c7ead92ee288..2b79d99d3b92 100644
--- a/xmloff/source/style/xmlbahdl.cxx
+++ b/xmloff/source/style/xmlbahdl.cxx
@@ -799,13 +799,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 571c59d181ed..b026c41c8094 100644
--- a/xmloff/source/text/XMLTextNumRuleInfo.cxx
+++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx
@@ -95,7 +95,7 @@ void XMLTextNumRuleInfo::Set(
// Assertion saving writer document (#i97312#)
if ( mxNumRules.is() && mxNumRules->getCount() < 1 )
{
- DBG_ASSERT( false,
+ SAL_WARN("xmloff",
"<XMLTextNumRuleInfo::Set(..)> - numbering rules instance does not contain any numbering rule" );
Reset();
return;
@@ -103,7 +103,7 @@ void XMLTextNumRuleInfo::Set(
if ( mnListLevel < 0 )
{
- DBG_ASSERT( false,
+ SAL_WARN("xmloff",
"<XMLTextNumRuleInfo::Set(..)> - unexpected numbering level" );
Reset();
return;
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index bbcd6f0081b2..d52a5ed0fea2 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -3165,14 +3165,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 e3430fe6721d..42bea91726a5 100644
--- a/xmloff/source/text/txtprhdl.cxx
+++ b/xmloff/source/text/txtprhdl.cxx
@@ -300,7 +300,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;
}
@@ -309,7 +309,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;
}
@@ -707,7 +707,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;
}
@@ -716,7 +716,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;
}
@@ -758,7 +758,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;
}