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 --- sw/source/ui/fldui/fldvar.cxx | 2 +- sw/source/uibase/dbui/dbmgr.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx index 18ab5f2bb552..2d217f475bc8 100644 --- a/sw/source/ui/fldui/fldvar.cxx +++ b/sw/source/ui/fldui/fldvar.cxx @@ -1209,7 +1209,7 @@ bool SwFieldVarPage::FillItemSet(SfxItemSet* ) } case TYP_SEQFLD: { - nSubType = m_pChapterLevelLB->GetSelectEntryPos(); + nSubType = static_cast< sal_uInt16 >(m_pChapterLevelLB->GetSelectEntryPos()); if (nSubType == 0) nSubType = 0x7f; else diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index b0a4ae227b21..677ad3f734c9 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -698,7 +698,7 @@ bool SwDBManager::GetTableNames(ListBox* pListBox, const OUString& rDBName) const OUString* pTables = aTables.getConstArray(); for(long i = 0; i < aTables.getLength(); i++) { - sal_uInt16 nEntry = pListBox->InsertEntry(pTables[i]); + const sal_Int32 nEntry = pListBox->InsertEntry(pTables[i]); pListBox->SetEntryData(nEntry, nullptr); } } @@ -710,7 +710,7 @@ bool SwDBManager::GetTableNames(ListBox* pListBox, const OUString& rDBName) const OUString* pQueries = aQueries.getConstArray(); for(long i = 0; i < aQueries.getLength(); i++) { - sal_uInt16 nEntry = pListBox->InsertEntry(pQueries[i]); + const sal_Int32 nEntry = pListBox->InsertEntry(pQueries[i]); pListBox->SetEntryData(nEntry, reinterpret_cast(1)); } } -- cgit