summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-30 20:59:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-30 21:21:30 +0100
commit1062aaf005b429fa4b480c2857c3479488208ed8 (patch)
tree1dc53ca2a54901aed7625c5bdb6db07ae65a6cc7
parent85ed65f83981ac07215cb01024e8e66d705f1267 (diff)
coverity#1194922 Overflowed return value
Change-Id: Id00dc5b37685ac81125e5ed075680c4dab2426c9
-rw-r--r--chart2/source/controller/dialogs/res_BarGeometry.cxx6
-rw-r--r--chart2/source/controller/dialogs/res_BarGeometry.hxx6
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 );