diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 16:57:12 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:34 +0100 |
commit | bc0557001212e4a94e8123c46f643defcb85afa0 (patch) | |
tree | 602606bf99053fbbe38ec5a6bbdecd2546081cb1 | |
parent | 48c99df39e6e66e3957b74ceedd0ed2cc6170143 (diff) |
flatten and simplify
Change-Id: I198793d0ab9a91a7f6a3aebc5fafbb6d7de7b98f
-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 d983f72e0403..10b2db7be2a7 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1559,18 +1559,15 @@ sal_Bool SwXTextTableCursor::gotoCellByName(const OUString& sCellName, sal_Bool return rTblCrsr.GotoTblBox(sCellName); } -sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception ) +sal_Bool SwXTextTableCursor::goLeft(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.Left(Count, CRSR_SKIP_CHARS, false, false); - } - return bRet; + if(!pUnoCrsr) + return false; + SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); + lcl_CrsrSelect(rTblCrsr, bExpand); + return rTblCrsr.Left(Count, CRSR_SKIP_CHARS, false, false); } sal_Bool SwXTextTableCursor::goRight(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception ) |