diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:22:09 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-01 05:25:36 +0100 |
commit | 1be268f3ec7661be232b8f5dc18546d1410dfd52 (patch) | |
tree | 5b8202c3f107d47211b2b23270f2e00318adc01d /unotools/source/config/moduleoptions.cxx | |
parent | b8d17d754830ab57099dcdfa72a96bfad404ab1a (diff) |
Prepare for removal of non-const operator[] from Sequence in unotools
Change-Id: I720d1c1e4a8d32e8a7c7ac62ab9cf988bac31d01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124406
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'unotools/source/config/moduleoptions.cxx')
-rw-r--r-- | unotools/source/config/moduleoptions.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index e73165ff4b18..44205dd06a59 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -126,31 +126,32 @@ struct FactoryInfo // b) add names and values of changed ones only and count it // c) resize return list by using count css::uno::Sequence< css::beans::PropertyValue > lProperties ( 4 ); + auto plProperties = lProperties.getArray(); sal_Int8 nRealyChanged = 0; if( bChangedTemplateFile ) { - lProperties[nRealyChanged].Name + plProperties[nRealyChanged].Name = OUString::Concat(sNodeBase) + PROPERTYNAME_TEMPLATEFILE; if ( !sTemplateFile.isEmpty() ) { - lProperties[nRealyChanged].Value + plProperties[nRealyChanged].Value <<= getStringSubstitution() ->reSubstituteVariables( sTemplateFile ); } else { - lProperties[nRealyChanged].Value <<= sTemplateFile; + plProperties[nRealyChanged].Value <<= sTemplateFile; } ++nRealyChanged; } if( bChangedDefaultFilter ) { - lProperties[nRealyChanged].Name + plProperties[nRealyChanged].Name = OUString::Concat(sNodeBase) + PROPERTYNAME_DEFAULTFILTER; - lProperties[nRealyChanged].Value <<= sDefaultFilter; + plProperties[nRealyChanged].Value <<= sDefaultFilter; ++nRealyChanged; } |