diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-02 19:15:51 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-03 21:00:41 +0200 |
commit | 890a59934985ee73d15be10fc083d325858c4f4b (patch) | |
tree | 25b4c05dcc37b42860a4c9ae2c15e0eff334b1ca /sw/source/ui/config | |
parent | 671517c462c51b356a35a2d51aa27e90bd3f9531 (diff) |
Simplify Sequence iterations in sw/source/ui/*
Use range-based loops, STL and comphelper functions
Change-Id: I0832f526cc549c76b423f5d5d7a5d2928ce117dc
Reviewed-on: https://gerrit.libreoffice.org/75005
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r-- | sw/source/ui/config/optcomp.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx index fff81e5e82a5..439fbb8285a6 100644 --- a/sw/source/ui/config/optcomp.cxx +++ b/sw/source/ui/config/optcomp.cxx @@ -242,14 +242,10 @@ void SwCompatibilityOptPage::InitControls( const SfxItemSet& rSet ) SvtCompatibilityEntry aEntry; aEntry.setValue<bool>( SvtCompatibilityEntry::Index::ExpandWordSpace, false ); - const sal_Int32 nCount = aList.getLength(); - for ( sal_Int32 i = 0; i < nCount; ++i ) + for ( const Sequence< PropertyValue >& rEntry : aList ) { - const Sequence< PropertyValue >& rEntry = aList[i]; - const sal_Int32 nEntries = rEntry.getLength(); - for ( sal_Int32 j = 0; j < nEntries; j++ ) + for ( const PropertyValue& aValue : rEntry ) { - PropertyValue aValue = rEntry[j]; aEntry.setValue( SvtCompatibilityEntry::getIndex(aValue.Name), aValue.Value ); } |