summaryrefslogtreecommitdiff
path: root/chart2/source/view/main/PropertyMapper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-08 21:19:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-08 22:17:25 +0200
commit2cf4cf718165988e81b606be7fa0a4b02973a10a (patch)
tree4c8934c574bd2e1eff85ebf425e96e8b2876f97d /chart2/source/view/main/PropertyMapper.cxx
parente11386053d3c404fbeab8b66402d68f813f7dd58 (diff)
avoid some ref-counting
Change-Id: I04dfa4070b2e64c4ab7cb59d4a5c4668e98dc076 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121831 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/main/PropertyMapper.cxx')
-rw-r--r--chart2/source/view/main/PropertyMapper.cxx8
1 files 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& )
{