diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-30 20:57:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-30 21:21:30 +0100 |
commit | 85ed65f83981ac07215cb01024e8e66d705f1267 (patch) | |
tree | 3123162eb8cdbe0bfbf6ac962cb2666f6e4ccc4f /sc/source/ui/miscdlgs | |
parent | a1b352a8da7394dfce580ccd0ae5de4e00275e71 (diff) |
coverity#1194921 Overflowed return value
Change-Id: I872835c3a20eda807d571fa27794dbe2bf858e7a
Diffstat (limited to 'sc/source/ui/miscdlgs')
-rw-r--r-- | sc/source/ui/miscdlgs/shtabdlg.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/ui/miscdlgs/shtabdlg.cxx b/sc/source/ui/miscdlgs/shtabdlg.cxx index 6f511c5139fa..1f04f4f30649 100644 --- a/sc/source/ui/miscdlgs/shtabdlg.cxx +++ b/sc/source/ui/miscdlgs/shtabdlg.cxx @@ -64,25 +64,21 @@ void ScShowTabDlg::Insert( const OUString& rString, bool bSelected ) m_pLb->SelectEntryPos( m_pLb->GetEntryCount() - 1 ); } - - -sal_uInt16 ScShowTabDlg::GetSelectEntryCount() const +sal_Int32 ScShowTabDlg::GetSelectEntryCount() const { return m_pLb->GetSelectEntryCount(); } -OUString ScShowTabDlg::GetSelectEntry(sal_uInt16 nPos) const +OUString ScShowTabDlg::GetSelectEntry(sal_Int32 nPos) const { return m_pLb->GetSelectEntry(nPos); } -sal_uInt16 ScShowTabDlg::GetSelectEntryPos(sal_uInt16 nPos) const +sal_Int32 ScShowTabDlg::GetSelectEntryPos(sal_Int32 nPos) const { return m_pLb->GetSelectEntryPos(nPos); } - - IMPL_LINK_NOARG_INLINE_START(ScShowTabDlg, DblClkHdl) { EndDialog( RET_OK ); |