Kaydet (Commit) 647e461d authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

flatten and simplify

Change-Id: I4de021c7fd4d1a22fd9cbbe3e391686d9684f1c6
üst bc055700
...@@ -1570,18 +1570,15 @@ sal_Bool SwXTextTableCursor::goLeft(sal_Int16 Count, sal_Bool bExpand) throw( un ...@@ -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); 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; SolarMutexGuard aGuard;
bool bRet = false;
SwUnoCrsr* pUnoCrsr = GetCrsr(); SwUnoCrsr* pUnoCrsr = GetCrsr();
if(pUnoCrsr) if(!pUnoCrsr)
{ return false;
SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
lcl_CrsrSelect(rTblCrsr, Expand); lcl_CrsrSelect(rTblCrsr, bExpand);
bRet = rTblCrsr.Right(Count, CRSR_SKIP_CHARS, false, false); return rTblCrsr.Right(Count, CRSR_SKIP_CHARS, false, false);
}
return bRet;
} }
sal_Bool SwXTextTableCursor::goUp(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception ) sal_Bool SwXTextTableCursor::goUp(sal_Int16 Count, sal_Bool Expand) throw( uno::RuntimeException, std::exception )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment