summaryrefslogtreecommitdiff
path: root/forms/source/runtime/formoperations.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-11 13:13:33 +0200
committerNoel Grandin <noel@peralex.com>2016-01-11 13:14:08 +0200
commitaa4dc893521291ace4828dc6ac390fab2b5ac6a7 (patch)
tree101e762806490989be6dae93acd77543a156f611 /forms/source/runtime/formoperations.cxx
parent7a658373496fc41f40c5019870456dca3a9f6ecc (diff)
loplugin:unusedmethods unused return value in forms
Change-Id: I9da3e72ca12e040e7fb5bea7ccaa071edfd34f27
Diffstat (limited to 'forms/source/runtime/formoperations.cxx')
-rw-r--r--forms/source/runtime/formoperations.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index bdd507f05c7d..33a2fa1c8720 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -1448,17 +1448,17 @@ namespace frm
}
- bool FormOperations::impl_moveLeft_throw( ) const
+ void FormOperations::impl_moveLeft_throw( ) const
{
OSL_PRECOND( impl_hasCursor_nothrow(), "FormOperations::impl_moveLeft_throw: no cursor!" );
if ( !impl_hasCursor_nothrow() )
- return false;
+ return;
sal_Bool bRecordInserted = sal_False;
bool bSuccess = impl_commitCurrentRecord_throw( &bRecordInserted );
if ( !bSuccess )
- return false;
+ return;
if ( bRecordInserted )
{
@@ -1479,22 +1479,20 @@ namespace frm
else
m_xCursor->previous();
}
-
- return true;
}
- bool FormOperations::impl_moveRight_throw( ) const
+ void FormOperations::impl_moveRight_throw( ) const
{
OSL_PRECOND( impl_hasCursor_nothrow(), "FormOperations::impl_moveRight_throw: no cursor!" );
if ( !impl_hasCursor_nothrow() )
- return false;
+ return;
sal_Bool bRecordInserted = sal_False;
bool bSuccess = impl_commitCurrentRecord_throw( &bRecordInserted );
if ( !bSuccess )
- return false;
+ return;
if ( bRecordInserted )
{
@@ -1508,8 +1506,6 @@ namespace frm
else
(void)m_xCursor->next();
}
-
- return true;
}