From ae8485045ff19444b67cd259efebe64718777bf7 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Wed, 21 May 2014 22:05:20 +0200 Subject: [PATCH] sal_uInt16 to sal_uInt32 + some const Change-Id: I12b04ab7ce15a9a30db6e4dafd64a31f4fca8a88 --- sw/source/core/unocore/unosrch.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx index d466f4a049f4..c85b2dd872a9 100644 --- a/sw/source/core/unocore/unosrch.cxx +++ b/sw/source/core/unocore/unosrch.cxx @@ -74,19 +74,18 @@ void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::Prope throw( beans::UnknownPropertyException, lang::IllegalArgumentException, uno::RuntimeException ) { const beans::PropertyValue* pProps = aSearchAttribs.getConstArray(); - sal_uInt32 i; //delete all existing values - for( i = 0; i < nArrLen; i++) + for(sal_uInt32 i = 0; i < nArrLen; ++i) { delete pValueArr[i]; pValueArr[i] = 0; } - sal_uInt32 nLen = aSearchAttribs.getLength(); - for(i = 0; i < nLen; i++) + const sal_uInt32 nLen = aSearchAttribs.getLength(); + for(sal_uInt32 i = 0; i < nLen; ++i) { - sal_uInt16 nIndex = 0; + sal_uInt32 nIndex = 0; PropertyEntryVector_t::const_iterator aIt = aPropertyEntries.begin(); while(pProps[i].Name != aIt->sName) {