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 --- starmath/source/dialog.cxx | 2 +- starmath/source/utility.cxx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'starmath') diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index f43e831566e0..08ea8a4ea2f3 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -2346,7 +2346,7 @@ void SmSymDefineDialog::SetFont(const OUString &rFontName, const OUString &rStyl const Subset* pSubset; while( NULL != (pSubset = pSubsetMap->GetNextSubset( bFirst )) ) { - sal_uInt16 nPos = pFontsSubsetLB->InsertEntry( pSubset->GetName()); + const sal_Int32 nPos = pFontsSubsetLB->InsertEntry( pSubset->GetName()); pFontsSubsetLB->SetEntryData( nPos, const_cast(pSubset) ); // subset must live at least as long as the selected font !!! if( bFirst ) diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx index abd2e5e8480f..f575600e8fd2 100644 --- a/starmath/source/utility.cxx +++ b/starmath/source/utility.cxx @@ -159,10 +159,9 @@ SmFontPickListBox::SmFontPickListBox (vcl::Window* pParent, WinBits nBits) : IMPL_LINK( SmFontPickListBox, SelectHdl, ListBox *, /*pListBox*/ ) { - sal_uInt16 nPos; OUString aString; - nPos = GetSelectEntryPos(); + const sal_Int32 nPos = GetSelectEntryPos(); if (nPos != 0) { -- cgit v1.2.3