diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-12 11:00:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-12 14:50:01 +0200 |
commit | 58208b97b972d6ddca5122893b3084c67b0c5ecd (patch) | |
tree | 6a44d706645ad2c7cd23d9d9b1763bb16e25e593 /writerfilter/source/dmapper/DomainMapper_Impl.cxx | |
parent | 39b25518ce96a50f54459f681edcb95057507251 (diff) |
avoid some OUString construction in writerfilter/
no need to repeatedly construct these
Change-Id: Ie271c8adaf1cb558d3174c9f325de524c46e399b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151698
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapper_Impl.cxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 83ce570dcbab..7caa847e068e 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -1571,7 +1571,7 @@ static void lcl_MoveBorderPropertiesToFrame(std::vector<beans::PropertyValue>& r for( size_t nProperty = 0; nProperty < SAL_N_ELEMENTS( aBorderProperties ); ++nProperty) { - OUString sPropertyName = getPropertyName(aBorderProperties[nProperty]); + const OUString & sPropertyName = getPropertyName(aBorderProperties[nProperty]); beans::PropertyValue aValue; aValue.Name = sPropertyName; aValue.Value = xTextRangeProperties->getPropertyValue(sPropertyName); @@ -4130,7 +4130,7 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape if ( bOnlyApplyCharHeight && eId != PROP_CHAR_HEIGHT ) continue; - const OUString sPropName = getPropertyName(eId); + const OUString & sPropName = getPropertyName(eId); if ( beans::PropertyState_DEFAULT_VALUE == xShapePropertyState->getPropertyState(sPropName) ) { const uno::Any aProp = GetPropertyFromStyleSheet(eId, pEntry, /*bDocDefaults=*/true, /*bPara=*/true); |