From 2cf4cf718165988e81b606be7fa0a4b02973a10a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Sep 2021 21:19:59 +0200 Subject: avoid some ref-counting Change-Id: I04dfa4070b2e64c4ab7cb59d4a5c4668e98dc076 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121831 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/view/main/PropertyMapper.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chart2/source/view/main/PropertyMapper.cxx b/chart2/source/view/main/PropertyMapper.cxx index c7327974249a..d9ae1fc7a925 100644 --- a/chart2/source/view/main/PropertyMapper.cxx +++ b/chart2/source/view/main/PropertyMapper.cxx @@ -101,13 +101,13 @@ void PropertyMapper::getValueMap( { for (auto const& elem : rNameMap) { - OUString aTarget = elem.first; - OUString aSource = elem.second; + const OUString & rTarget = elem.first; + const OUString & rSource = elem.second; try { - uno::Any aAny( xSourceProp->getPropertyValue(aSource) ); + uno::Any aAny( xSourceProp->getPropertyValue(rSource) ); if( aAny.hasValue() ) - rValueMap.emplace( aTarget, aAny ); + rValueMap.emplace( rTarget, aAny ); } catch( const uno::Exception& ) { -- cgit 2'>distro/cib/libreoffice-5-2