summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 09:23:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 10:37:31 +0200
commit5e01bae7f4a6f81ff70f328d0289dae37fab01eb (patch)
treecc126a1dbc37037cda74405e89e059f1cadc2fcf /xmloff
parent205eb935c286f52870d7ffd9b2d8b75c2d6bc57f (diff)
loplugin:returnconstval in sax
Change-Id: Icf5c337164b71aab10dd960815eee516822c276c Reviewed-on: https://gerrit.libreoffice.org/77990 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index bc6801ea6897..8964eed35002 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -841,7 +841,7 @@ void SAL_CALL SvXMLImport::startFastElement (sal_Int32 Element,
{
sax_fastparser::FastAttributeList *pAttribList =
sax_fastparser::FastAttributeList::castToFastAttributeList( Attribs );
- auto &aIter( pAttribList->find( XML_ELEMENT( OFFICE, XML_VERSION ) ) );
+ auto aIter( pAttribList->find( XML_ELEMENT( OFFICE, XML_VERSION ) ) );
if( aIter != pAttribList->end() )
{
mpImpl->aODFVersion = aIter.toString();