[Libreoffice-commits] core.git: chart2/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 8 20:17:59 UTC 2021


 chart2/source/view/main/PropertyMapper.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 2cf4cf718165988e81b606be7fa0a4b02973a10a
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Sep 8 21:19:59 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Sep 8 22:17:25 2021 +0200

    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 at collabora.co.uk>

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& )
             {


More information about the Libreoffice-commits mailing list