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 /sw | |
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 'sw')
-rw-r--r-- | sw/source/core/swg/SwXMLSectionList.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/swg/SwXMLSectionList.cxx b/sw/source/core/swg/SwXMLSectionList.cxx index 13282cf12aac..aa6c63b8bb29 100644 --- a/sw/source/core/swg/SwXMLSectionList.cxx +++ b/sw/source/core/swg/SwXMLSectionList.cxx @@ -66,8 +66,8 @@ public: { return new SvXMLSectionListContext(GetImport()); } - if ((Element & NMSP_MASK) == NAMESPACE_TOKEN(XML_NAMESPACE_TEXT) || - (Element & NMSP_MASK) == NAMESPACE_TOKEN(XML_NAMESPACE_TEXT_OOO)) + if (IsTokenInNamespace(Element, XML_NAMESPACE_TEXT) || + IsTokenInNamespace(Element, XML_NAMESPACE_TEXT_OOO)) { auto nToken = Element & TOKEN_MASK; if (nToken == XML_P || |