xmloff/source/text/XMLIndexTemplateContext.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit bb5cf02fd2cdc8a2821361a05b8c96cf34a8be5b Author: Noel <noelgran...@gmail.com> AuthorDate: Tue Dec 1 10:28:21 2020 +0200 Commit: Noel Grandin <noel.gran...@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.gran...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits