[Libreoffice-commits] core.git: xmloff/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Tue Dec 1 17:00:53 UTC 2020
xmloff/source/text/XMLIndexTemplateContext.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit bb5cf02fd2cdc8a2821361a05b8c96cf34a8be5b
Author: Noel <noelgrandin at gmail.com>
AuthorDate: Tue Dec 1 10:28:21 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Dec 1 18:00:03 2020 +0100
fastparser in XMLIndexTemplateContext
Change-Id: I64d9559562baae57fb708b0703f6e71d505cf797
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106975
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/xmloff/source/text/XMLIndexTemplateContext.cxx b/xmloff/source/text/XMLIndexTemplateContext.cxx
index 32e2ad5b4e27..36710b0eab2b 100644
--- a/xmloff/source/text/XMLIndexTemplateContext.cxx
+++ b/xmloff/source/text/XMLIndexTemplateContext.cxx
@@ -102,14 +102,13 @@ void XMLIndexTemplateContext::startFastElement(
// process two attributes: style-name, outline-level
for( auto& aIter : sax_fastparser::castToFastAttributeList(xAttrList) )
{
- if (aIter.getToken() == XML_ELEMENT(TEXT, XML_STYLE_NAME) )
+ if(aIter.getToken() == XML_ELEMENT(TEXT, XML_STYLE_NAME))
{
// style name
sStyleName = aIter.toString();
bStyleNameOK = true;
}
- else if (eOutlineLevelAttrName != XML_TOKEN_INVALID &&
- aIter.getToken() == XML_ELEMENT(TEXT, eOutlineLevelAttrName))
+ else if (aIter.getToken() == XML_ELEMENT(TEXT, eOutlineLevelAttrName))
{
// we have an attr name! Then see if we have the attr, too.
// outline level
More information about the Libreoffice-commits
mailing list