From 1062aaf005b429fa4b480c2857c3479488208ed8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 30 Mar 2014 20:59:33 +0100 Subject: coverity#1194922 Overflowed return value Change-Id: Id00dc5b37685ac81125e5ed075680c4dab2426c9 --- chart2/source/controller/dialogs/res_BarGeometry.cxx | 6 +++--- chart2/source/controller/dialogs/res_BarGeometry.hxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chart2/source/controller/dialogs/res_BarGeometry.cxx b/chart2/source/controller/dialogs/res_BarGeometry.cxx index 13a16e72e5d9..725b2cc5d82b 100644 --- a/chart2/source/controller/dialogs/res_BarGeometry.cxx +++ b/chart2/source/controller/dialogs/res_BarGeometry.cxx @@ -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 ); diff --git a/chart2/source/controller/dialogs/res_BarGeometry.hxx b/chart2/source/controller/dialogs/res_BarGeometry.hxx index b74e1ccec402..60af3af3ccd8 100644 --- a/chart2/source/controller/dialogs/res_BarGeometry.hxx +++ b/chart2/source/controller/dialogs/res_BarGeometry.hxx @@ -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 ); -- cgit