[Libreoffice-commits] core.git: sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 1 09:51:14 UTC 2020
sw/source/uibase/config/StoredChapterNumbering.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 48ea0d145dfeac33e17e9b841fe45d53b2e95cfb
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri May 1 10:54:20 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri May 1 11:50:35 2020 +0200
can just call isXMLToken here
Change-Id: I5cb0b5ce9c9be78b68c757590880bf894186d0be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93244
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sw/source/uibase/config/StoredChapterNumbering.cxx b/sw/source/uibase/config/StoredChapterNumbering.cxx
index 8b57e2047a47..794debda9e9c 100644
--- a/sw/source/uibase/config/StoredChapterNumbering.cxx
+++ b/sw/source/uibase/config/StoredChapterNumbering.cxx
@@ -280,11 +280,11 @@ public:
for (auto &aIter : sax_fastparser::castToFastAttributeList( xAttrList ))
if (aIter.getToken() == (XML_NAMESPACE_STYLE | XML_FAMILY))
{
- if (IsXMLToken(aIter.toString(), XML_TEXT))
+ if (IsXMLToken(aIter, XML_TEXT))
nFamily = XmlStyleFamily::TEXT_TEXT;
- else if (IsXMLToken(aIter.toString(), XML_NAME))
+ else if (IsXMLToken(aIter, XML_NAME))
name = aIter.toString();
- else if (IsXMLToken(aIter.toString(), XML_DISPLAY_NAME))
+ else if (IsXMLToken(aIter, XML_DISPLAY_NAME))
displayName = aIter.toString();
else
SAL_WARN("xmloff", "unknown value for style:family=" << aIter.toString());
More information about the Libreoffice-commits
mailing list