Kaydet (Commit) 1062aaf0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1194922 Overflowed return value

Change-Id: Id00dc5b37685ac81125e5ed075680c4dab2426c9
üst 85ed65f8
......@@ -44,17 +44,17 @@ void BarGeometryResources::Enable( bool bEnable )
m_pLB_Geometry->Enable( bEnable );
}
sal_uInt16 BarGeometryResources::GetSelectEntryCount() const
sal_Int32 BarGeometryResources::GetSelectEntryCount() const
{
return m_pLB_Geometry->GetSelectEntryCount();
}
sal_uInt16 BarGeometryResources::GetSelectEntryPos() const
sal_Int32 BarGeometryResources::GetSelectEntryPos() const
{
return m_pLB_Geometry->GetSelectEntryPos();
}
void BarGeometryResources::SelectEntryPos( sal_uInt16 nPos )
void BarGeometryResources::SelectEntryPos(sal_Int32 nPos)
{
if( nPos < m_pLB_Geometry->GetEntryCount() )
m_pLB_Geometry->SelectEntryPos( nPos );
......
......@@ -34,9 +34,9 @@ public:
void Show( bool bShow );
void Enable( bool bEnable );
sal_uInt16 GetSelectEntryCount() const;
sal_uInt16 GetSelectEntryPos() const;
void SelectEntryPos( sal_uInt16 nPos );
sal_Int32 GetSelectEntryCount() const;
sal_Int32 GetSelectEntryPos() const;
void SelectEntryPos(sal_Int32 nPos);
void SetSelectHdl( const Link& rLink );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment