summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlnumfe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/xmlnumfe.cxx')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 78bd915f4dc5..3fd0d5cd84e1 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -1096,7 +1096,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
eType = XML_BOOLEAN_STYLE;
break;
}
- DBG_ASSERT( eType != XML_TOKEN_INVALID, "unknown format type" );
+ SAL_WARN_IF( eType == XML_TOKEN_INVALID, "xmloff", "unknown format type" );
OUString sAttrValue;
bool bUserDef = ( rFormat.GetType() & css::util::NumberFormat::DEFINED );
@@ -1867,7 +1867,7 @@ OUString SvXMLNumFmtExport::GetStyleName( sal_uInt32 nKey )
void SvXMLNumFmtExport::SetUsed( sal_uInt32 nKey )
{
- DBG_ASSERT( pFormatter != nullptr, "missing formatter" );
+ SAL_WARN_IF( pFormatter == nullptr, "xmloff", "missing formatter" );
if( !pFormatter )
return;
@@ -1903,7 +1903,7 @@ sal_uInt32 SvXMLNumFmtExport::ForceSystemLanguage( sal_uInt32 nKey )
const SvNumberformat* pFormat = lcl_GetFormat( pFormatter, nKey );
if( pFormat != nullptr )
{
- DBG_ASSERT( pFormatter != nullptr, "format without formatter?" );
+ SAL_WARN_IF( pFormatter == nullptr, "xmloff", "format without formatter?" );
sal_Int32 nErrorPos;
short nType = pFormat->GetType();