diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 16:59:39 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:36 +0100 |
commit | 63d47cd94df138d0f76961c8e370269e75d95745 (patch) | |
tree | f56ff897d98cc2480f3f5ff82d49845f9e0471f9 /sw | |
parent | 336f29cab4c145a204b1dc44a083a32c49a93539 (diff) |
flatten and simplify
Change-Id: I0a45f87ca77f3eb4dabbe3c8dc047ab5ce93f1aa
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index dc780df2e21a..771a524fe76f 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1592,18 +1592,15 @@ sal_Bool SwXTextTableCursor::goUp(sal_Int16 Count, sal_Bool bExpand) throw( uno: return rTblCrsr.UpDown(true, Count, 0, 0); } -sal_Bool SwXTextTableCursor::goDown(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception ) +sal_Bool SwXTextTableCursor::goDown(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(false, Count, 0, 0); - } - return bRet; + if(!pUnoCrsr) + return false; + SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); + lcl_CrsrSelect(rTblCrsr, bExpand); + return rTblCrsr.UpDown(false, Count, 0, 0); } void SwXTextTableCursor::gotoStart(sal_Bool Expand) throw( uno::RuntimeException, std::exception ) |