From 44a6335f49a64ac77207d3aa46c267503c65c5ff Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sun, 7 Jul 2019 16:20:12 +0300 Subject: Simplify Sequence iterations in svx Use range-based loops, STL and comphelper functions Change-Id: If6d190cf72b8653c1c3fbe9a6a6e47f10f1a6765 Reviewed-on: https://gerrit.libreoffice.org/75255 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov --- svx/source/dialog/SvxNumOptionsTabPageHelper.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'svx/source/dialog/SvxNumOptionsTabPageHelper.cxx') diff --git a/svx/source/dialog/SvxNumOptionsTabPageHelper.cxx b/svx/source/dialog/SvxNumOptionsTabPageHelper.cxx index 044663638358..6f506ae9a7c4 100644 --- a/svx/source/dialog/SvxNumOptionsTabPageHelper.cxx +++ b/svx/source/dialog/SvxNumOptionsTabPageHelper.cxx @@ -55,10 +55,8 @@ void SvxNumOptionsTabPageHelper::GetI18nNumbering( ListBox& rFmtLB, sal_uInt16 n if(xInfo.is()) { Sequence aTypes = xInfo->getSupportedNumberingTypes( ); - const sal_Int16* pTypes = aTypes.getConstArray(); - for(sal_Int32 nType = 0; nType < aTypes.getLength(); nType++) + for(const sal_Int16 nCurrent : aTypes) { - sal_Int16 nCurrent = pTypes[nType]; if(nCurrent > NumberingType::CHARS_LOWER_LETTER_N) { bool bInsert = true; @@ -110,10 +108,8 @@ void SvxNumOptionsTabPageHelper::GetI18nNumbering(weld::ComboBox& rFmtLB, sal_uI if(xInfo.is()) { Sequence aTypes = xInfo->getSupportedNumberingTypes( ); - const sal_Int16* pTypes = aTypes.getConstArray(); - for(sal_Int32 nType = 0; nType < aTypes.getLength(); nType++) + for(const sal_Int16 nCurrent : aTypes) { - sal_Int16 nCurrent = pTypes[nType]; if(nCurrent > NumberingType::CHARS_LOWER_LETTER_N) { bool bInsert = true; -- cgit