summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-28 16:16:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-29 19:35:52 +0200
commit3e9bef4b6ef2e1b467b46f5579b5fce201015d83 (patch)
treebb48254079b2277a108e4ba44428ab1c56248208 /starmath
parentab846145bbd56f4308c8657df8b1354a403edd74 (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 'starmath')
-rw-r--r--starmath/source/mathmlimport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index a4ef90a47504..e0dab47598b9 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -2614,7 +2614,7 @@ SvXMLImportContext *SmXMLImport::CreateFastContext(sal_Int32 nElement,
}
break;
default:
- if ((nElement & NMSP_MASK) == NAMESPACE_TOKEN(XML_NAMESPACE_OFFICE))
+ if (IsTokenInNamespace(nElement, XML_NAMESPACE_OFFICE))
pContext = new SmXMLOfficeContext_Impl(*this);
else
pContext = new SmXMLDocContext_Impl(*this);