summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLSectionFootnoteConfigImport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-28 09:13:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-28 11:17:34 +0200
commitcb96678b3f875595e203f263e397afc33b433bb0 (patch)
tree1d6e1d19b7a9f6bdae149da9e872569ede7a2ac8 /xmloff/source/text/XMLSectionFootnoteConfigImport.cxx
parent9a884b3d055ffdedbadb64c7f14e6d38078dedb1 (diff)
loplugin:oncevar in xmloff
Change-Id: I0fbd37685a0006e1fbc98d2b432c2b84d13d6cc8 Reviewed-on: https://gerrit.libreoffice.org/39344 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLSectionFootnoteConfigImport.cxx')
-rw-r--r--xmloff/source/text/XMLSectionFootnoteConfigImport.cxx3
1 files changed, 1 insertions, 2 deletions
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<XAttributeList> & 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 );
}