summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 13:56:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:23:04 +0200
commitc504780e7883e911916689c12709d64d78125422 (patch)
tree55b6551855f14d14454f9bd6302870fa8766c61b /svl
parent56a9a3a2d7f64c277b3dadd5a910a1183a47ac69 (diff)
loplugin:sequenceloop in starmath..svl
Change-Id: I473a8eec9cbf6d44b55ffd6f2233bf39cf6217da Reviewed-on: https://gerrit.libreoffice.org/77528 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/grabbagitem.cxx2
-rw-r--r--svl/source/items/srchitem.cxx2
-rw-r--r--svl/source/numbers/zforlist.cxx4
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx4
4 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx
index 191d7b35c74b..83c0323450ab 100644
--- a/svl/source/items/grabbagitem.cxx
+++ b/svl/source/items/grabbagitem.cxx
@@ -43,7 +43,7 @@ bool SfxGrabBagItem::PutValue(const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
if (rVal >>= aValue)
{
m_aMap.clear();
- for (beans::PropertyValue const& aPropertyValue : aValue)
+ for (beans::PropertyValue const& aPropertyValue : std::as_const(aValue))
{
m_aMap[aPropertyValue.Name] = aPropertyValue.Value;
}
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx
index 5443cc06539b..4fd9ead794af 100644
--- a/svl/source/items/srchitem.cxx
+++ b/svl/source/items/srchitem.cxx
@@ -508,7 +508,7 @@ bool SvxSearchItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
if ( ( rVal >>= aSeq ) && ( aSeq.getLength() == SRCH_PARAMS ) )
{
sal_Int16 nConvertedCount( 0 );
- for ( const auto& rProp : aSeq )
+ for ( const auto& rProp : std::as_const(aSeq) )
{
if ( rProp.Name == SRCH_PARA_OPTIONS )
{
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index bd35c725d5db..e862b45f5db4 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -2798,7 +2798,7 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset,
// There is no harm though, on first invocation ImpGetDefaultFormat() will
// use the first default encountered.
aFormatSeq = rNumberFormatCode->getAllFormatCodes( aLocale );
- for ( const auto& rFormat : aFormatSeq )
+ for ( const auto& rFormat : std::as_const(aFormatSeq) )
{
if ( nPos - CLOffset >= SV_COUNTRY_LANGUAGE_OFFSET )
{
@@ -3842,7 +3842,7 @@ void SvNumberFormatter::ImpInitCurrencyTable()
std::make_unique<NfCurrencyEntry>(*pLocaleData, LANGUAGE_SYSTEM));
sal_uInt16 nCurrencyPos = 1;
- css::uno::Sequence< css::lang::Locale > xLoc = LocaleDataWrapper::getInstalledLocaleNames();
+ const css::uno::Sequence< css::lang::Locale > xLoc = LocaleDataWrapper::getInstalledLocaleNames();
sal_Int32 nLocaleCount = xLoc.getLength();
SAL_INFO( "svl.numbers", "number of locales: \"" << nLocaleCount << "\"" );
NfCurrencyTable &rCurrencyTable = theCurrencyTable::get();
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 0c6c1b29abde..55f959cfc3a5 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -1091,7 +1091,7 @@ sal_Bool SAL_CALL PasswordContainer::changeMasterPassword( const uno::Reference<
if ( !aPass.isEmpty() )
{
// get all the persistent entries if it is possible
- Sequence< UrlRecord > aPersistent = getAllPersistent( uno::Reference< task::XInteractionHandler >() );
+ const Sequence< UrlRecord > aPersistent = getAllPersistent( uno::Reference< task::XInteractionHandler >() );
// remove the master password and the entries persistence
removeMasterPassword();
@@ -1194,7 +1194,7 @@ sal_Bool SAL_CALL PasswordContainer::useDefaultMasterPassword( const uno::Refere
if ( !aPass.isEmpty() )
{
// get all the persistent entries if it is possible
- Sequence< UrlRecord > aPersistent = getAllPersistent( uno::Reference< task::XInteractionHandler >() );
+ const Sequence< UrlRecord > aPersistent = getAllPersistent( uno::Reference< task::XInteractionHandler >() );
// remove the master password and the entries persistence
removeMasterPassword();