summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms/TokenContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/xforms/TokenContext.cxx')
-rw-r--r--xmloff/source/xforms/TokenContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/xforms/TokenContext.cxx b/xmloff/source/xforms/TokenContext.cxx
index 8751b9d0771c..a1341b90c1b0 100644
--- a/xmloff/source/xforms/TokenContext.cxx
+++ b/xmloff/source/xforms/TokenContext.cxx
@@ -60,7 +60,7 @@ void TokenContext::StartElement(
// - if in map: call HandleAttribute
// - xmlns:... : ignore
// - other: warning
- DBG_ASSERT( mpAttributes != nullptr, "no token map for attributes" );
+ SAL_WARN_IF( mpAttributes == nullptr, "xmloff", "no token map for attributes" );
SvXMLTokenMap aMap( mpAttributes );
sal_Int16 nCount = xAttributeList->getLength();
@@ -100,7 +100,7 @@ SvXMLImportContext* TokenContext::CreateChildContext(
SvXMLImportContext* pContext = nullptr;
- DBG_ASSERT( mpChildren != nullptr, "no token map for child elements" );
+ SAL_WARN_IF( mpChildren == nullptr, "xmloff", "no token map for child elements" );
SvXMLTokenMap aMap( mpChildren );
sal_uInt16 nToken = aMap.Get( nPrefix, rLocalName );
if( nToken != XML_TOK_UNKNOWN )