summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms/SchemaContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/xforms/SchemaContext.cxx')
-rw-r--r--xmloff/source/xforms/SchemaContext.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/xforms/SchemaContext.cxx b/xmloff/source/xforms/SchemaContext.cxx
index 210133a4868c..6c19cbfa019a 100644
--- a/xmloff/source/xforms/SchemaContext.cxx
+++ b/xmloff/source/xforms/SchemaContext.cxx
@@ -67,10 +67,10 @@ SvXMLImportContext* SchemaContext::HandleChild(
const OUString& rLocalName,
const Reference<XAttributeList>& )
{
- return ( nToken == XML_SIMPLETYPE )
- ? new SchemaSimpleTypeContext( GetImport(), nPrefix, rLocalName,
- mxRepository )
- : new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
+ if ( nToken == XML_SIMPLETYPE )
+ return new SchemaSimpleTypeContext( GetImport(), nPrefix, rLocalName,
+ mxRepository );
+ return nullptr;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */