diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xml/xmlxtimp.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/svx/source/xml/xmlxtimp.cxx b/svx/source/xml/xmlxtimp.cxx index ea32ca9c380c..7c0a238dcebc 100644 --- a/svx/source/xml/xmlxtimp.cxx +++ b/svx/source/xml/xmlxtimp.cxx @@ -101,9 +101,8 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SvxXMLTableImportContext::createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > & rAttrList) { - sal_Int32 nNamespace = nElement & NMSP_MASK; - if( NAMESPACE_TOKEN(XML_NAMESPACE_DRAW) == nNamespace || - NAMESPACE_TOKEN(XML_NAMESPACE_DRAW_OOO) == nNamespace ) + if( IsTokenInNamespace(nElement, XML_NAMESPACE_DRAW) || + IsTokenInNamespace(nElement, XML_NAMESPACE_DRAW_OOO) ) { SvXMLAttributeList *pAttrList = new SvXMLAttributeList; for (auto& aIter : sax_fastparser::castToFastAttributeList( rAttrList )) @@ -428,13 +427,12 @@ bool SvxXMLXTableImport::load( const OUString &rPath, const OUString &rReferer, SvXMLImportContext *SvxXMLXTableImport::CreateFastContext( sal_Int32 nElement, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList >& /*xAttrList*/ ) { - sal_Int32 nNamespace = nElement & NMSP_MASK; - if( NAMESPACE_TOKEN(XML_NAMESPACE_OOO) == nNamespace || - NAMESPACE_TOKEN(XML_NAMESPACE_OFFICE) == nNamespace || - NAMESPACE_TOKEN(XML_NAMESPACE_OFFICE_OOO) == nNamespace ) + if( IsTokenInNamespace(nElement, XML_NAMESPACE_OOO) || + IsTokenInNamespace(nElement, XML_NAMESPACE_OFFICE) || + IsTokenInNamespace(nElement, XML_NAMESPACE_OFFICE_OOO) ) { - bool bOOoFormat = (NAMESPACE_TOKEN(XML_NAMESPACE_OFFICE) == nNamespace) || - (NAMESPACE_TOKEN(XML_NAMESPACE_OFFICE_OOO) == nNamespace); + bool bOOoFormat = IsTokenInNamespace(nElement, XML_NAMESPACE_OFFICE) || + IsTokenInNamespace(nElement, XML_NAMESPACE_OFFICE_OOO); Type aType = mrTable->getElementType(); sal_Int32 nToken = nElement & TOKEN_MASK; |