diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 17:00:56 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:36 +0100 |
commit | 94db1357b1e50ece5b9ac1c5a123ce656aba1790 (patch) | |
tree | 972f87bf277867a13d94e9f9345943e78d7d59e7 /sw | |
parent | 9ba21f6bf1fc369f41eb9454ec9df499159d783e (diff) |
flatten and simplify
Change-Id: I7fb6774f0ebfbb65410ab441eb1195e5c7310756
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index f136f106128d..a05f063f3405 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1614,16 +1614,15 @@ void SwXTextTableCursor::gotoStart(sal_Bool bExpand) throw( uno::RuntimeExceptio rTblCrsr.MoveTable(fnTableCurr, fnTableStart); } -void SwXTextTableCursor::gotoEnd(sal_Bool Expand) throw( uno::RuntimeException, std::exception ) +void SwXTextTableCursor::gotoEnd(sal_Bool bExpand) throw( uno::RuntimeException, std::exception ) { SolarMutexGuard aGuard; SwUnoCrsr* pUnoCrsr = GetCrsr(); - if(pUnoCrsr) - { - SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); - lcl_CrsrSelect(rTblCrsr, Expand); - rTblCrsr.MoveTable(fnTableCurr, fnTableEnd); - } + if(!pUnoCrsr) + return; + SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); + lcl_CrsrSelect(rTblCrsr, bExpand); + rTblCrsr.MoveTable(fnTableCurr, fnTableEnd); } sal_Bool SwXTextTableCursor::mergeRange() |