From c5909e251871e5a38992fade94a489a9546e11b7 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 30 Aug 2015 23:08:29 +0200 Subject: Update many ListBox users to its sal_Int32 interface Change-Id: I6469ac5e2d17406bee9bc434930e2471cb3bae9f --- cui/source/options/optsave.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cui/source/options/optsave.cxx') diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx index 1ec65657ccd0..eee1ad2ff536 100644 --- a/cui/source/options/optsave.cxx +++ b/cui/source/options/optsave.cxx @@ -560,7 +560,7 @@ static OUString lcl_ExtracUIName(const Sequence &rProperties) IMPL_LINK( SvxSaveTabPage, FilterHdl_Impl, ListBox *, pBox ) { - sal_uInt16 nCurPos = aDocTypeLB->GetSelectEntryPos(); + const sal_Int32 nCurPos = aDocTypeLB->GetSelectEntryPos(); sal_IntPtr nData = -1; if(nCurPos < APP_COUNT) @@ -588,7 +588,7 @@ IMPL_LINK( SvxSaveTabPage, FilterHdl_Impl, ListBox *, pBox ) OUString sSelect; for(int i = 0; i < pImpl->aUIFilterArr[nData].getLength(); i++) { - sal_uInt16 nEntryPos = aSaveAsLB->InsertEntry(pUIFilters[i]); + const sal_Int32 nEntryPos = aSaveAsLB->InsertEntry(pUIFilters[i]); if ( pImpl->aODFArr[nData][i] ) aSaveAsLB->SetEntryData( nEntryPos, static_cast(pImpl) ); if(pFilters[i] == pImpl->aDefaultArr[nData]) @@ -629,8 +629,8 @@ IMPL_LINK_NOARG(SvxSaveTabPage, ODFVersionHdl_Impl) if ( bShown ) { bool bHasODFFormat = false; - sal_uInt16 i = 0, nCount = aSaveAsLB->GetEntryCount(); - for ( ; i < nCount; ++ i ) + const sal_Int32 nCount = aSaveAsLB->GetEntryCount(); + for ( sal_Int32 i = 0; i < nCount; ++i ) { if ( aSaveAsLB->GetEntryData(i) != NULL ) { -- cgit