diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-28 16:16:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-29 19:35:52 +0200 |
commit | 3e9bef4b6ef2e1b467b46f5579b5fce201015d83 (patch) | |
tree | bb48254079b2277a108e4ba44428ab1c56248208 /dbaccess | |
parent | ab846145bbd56f4308c8657df8b1354a403edd74 (diff) |
simplify handling of comparing XML_NAMESPACE values
Change-Id: I18bbf1ee206285842250891ce556d523489855b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/filter/xml/xmlTableFilterList.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/filter/xml/xmlTableFilterList.cxx b/dbaccess/source/filter/xml/xmlTableFilterList.cxx index e147bd10a548..ddd799087a48 100644 --- a/dbaccess/source/filter/xml/xmlTableFilterList.cxx +++ b/dbaccess/source/filter/xml/xmlTableFilterList.cxx @@ -51,8 +51,8 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > OXMLTableFilterList::c { SvXMLImportContext *pContext = nullptr; - if ( (nElement & NMSP_MASK) == NAMESPACE_TOKEN(XML_NAMESPACE_DB) || - (nElement & NMSP_MASK) == NAMESPACE_TOKEN(XML_NAMESPACE_DB_OASIS) ) + if ( IsTokenInNamespace(nElement, XML_NAMESPACE_DB) || + IsTokenInNamespace(nElement, XML_NAMESPACE_DB_OASIS) ) { GetImport().GetProgressBarHelper()->Increment( PROGRESS_BAR_STEP ); switch (nElement & TOKEN_MASK) |