summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 16:58:56 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:35 +0100
commit336f29cab4c145a204b1dc44a083a32c49a93539 (patch)
tree8b43087bfc253208602ed6a9faa7297ed7bfb15e
parent647e461d0754f297e48d285b06351e0dabff96ed (diff)
flatten and simplify
Change-Id: I1b2bdbc3aa6e6a803dd57a5e49412391c4bb46dc
-rw-r--r--sw/source/core/unocore/unotbl.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 2e94934cd120..dc780df2e21a 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1581,18 +1581,15 @@ sal_Bool SwXTextTableCursor::goRight(sal_Int16 Count, sal_Bool bExpand) throw( u
return rTblCrsr.Right(Count, CRSR_SKIP_CHARS, false, false);
}
-sal_Bool SwXTextTableCursor::goUp(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )
+sal_Bool SwXTextTableCursor::goUp(sal_Int16 Count, sal_Bool bExpand) throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
- bool bRet = false;
SwUnoCrsr* pUnoCrsr = GetCrsr();
- if(pUnoCrsr)
- {
- SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
- lcl_CrsrSelect(rTblCrsr, Expand);
- bRet = rTblCrsr.UpDown(true, Count, 0, 0);
- }
- return bRet;
+ if(!pUnoCrsr)
+ return false;
+ SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
+ lcl_CrsrSelect(rTblCrsr, bExpand);
+ return rTblCrsr.UpDown(true, Count, 0, 0);
}
sal_Bool SwXTextTableCursor::goDown(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )