diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-30 23:08:29 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-12 14:18:50 +0200 |
commit | c5909e251871e5a38992fade94a489a9546e11b7 (patch) | |
tree | 7ef9bd642fb4799fb2a8d6d3529144c95a468dde /sw | |
parent | e76d07c6185512e47947dbe1b6a83fb944b8198f (diff) |
Update many ListBox users to its sal_Int32 interface
Change-Id: I6469ac5e2d17406bee9bc434930e2471cb3bae9f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/fldvar.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
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<void*>(1)); } } |