diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-01 10:28:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-01 18:00:03 +0100 |
commit | bb5cf02fd2cdc8a2821361a05b8c96cf34a8be5b (patch) | |
tree | bf685d93dd97abe20507725932da2606f2b4bf5e /xmloff | |
parent | f09d21b0428b8d1441a32e27baca945d2101600c (diff) |
fastparser in XMLIndexTemplateContext
Change-Id: I64d9559562baae57fb708b0703f6e71d505cf797
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106975
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLIndexTemplateContext.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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 |