summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 16:57:59 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:35 +0100
commit647e461d0754f297e48d285b06351e0dabff96ed (patch)
tree2fce711937a3fe579a9ec6354366ad2f86a5f20b
parentbc0557001212e4a94e8123c46f643defcb85afa0 (diff)
flatten and simplify
Change-Id: I4de021c7fd4d1a22fd9cbbe3e391686d9684f1c6
-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 10b2db7be2a7..2e94934cd120 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1570,18 +1570,15 @@ sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool bExpand) throw( un
return rTblCrsr.Left(Count, CRSR_SKIP_CHARS, false, false);
}
-sal_Bool SwXTextTableCursor::goRight(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )
+sal_Bool SwXTextTableCursor::goRight(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.Right(Count, CRSR_SKIP_CHARS, false, false);
- }
- return bRet;
+ if(!pUnoCrsr)
+ return false;
+ SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
+ lcl_CrsrSelect(rTblCrsr, bExpand);
+ return rTblCrsr.Right(Count, CRSR_SKIP_CHARS, false, false);
}
sal_Bool SwXTextTableCursor::goUp(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )