From cb96678b3f875595e203f263e397afc33b433bb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Jun 2017 09:13:21 +0200 Subject: loplugin:oncevar in xmloff Change-Id: I0fbd37685a0006e1fbc98d2b432c2b84d13d6cc8 Reviewed-on: https://gerrit.libreoffice.org/39344 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/text/XMLSectionFootnoteConfigImport.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmloff/source/text/XMLSectionFootnoteConfigImport.cxx') diff --git a/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx b/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx index 78f061cad181..fe697f07f8bb 100644 --- a/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx +++ b/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx @@ -65,7 +65,6 @@ XMLSectionFootnoteConfigImport::~XMLSectionFootnoteConfigImport() void XMLSectionFootnoteConfigImport::StartElement( const Reference & xAttrList) { - bool bEnd = true; // we're inside the element, so this is true bool bNumOwn = false; bool bNumRestart = false; bool bEndnote = false; @@ -166,7 +165,7 @@ void XMLSectionFootnoteConfigImport::StartElement( nIndex = rMapper->FindEntryIndex( bEndnote ? CTF_SECTION_ENDNOTE_END : CTF_SECTION_FOOTNOTE_END ); - XMLPropertyState aEndState( nIndex, css::uno::Any(bEnd) ); + XMLPropertyState aEndState( nIndex, css::uno::Any(true) ); // we're inside the element, so this is true rProperties.push_back( aEndState ); } -- cgit