diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-29 01:01:44 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-30 23:17:30 +0200 |
commit | fda5c4d4d268aaab5f778b93f08a9b42a9c26ae9 (patch) | |
tree | 8f767f379929443022be444b3917384452c65d0d /sw | |
parent | ec1901ef85adb3c1ebf2847d5ecd1d2a76a08f47 (diff) |
flatten and simplify
Change-Id: Ib3562bafa3a21538918d98e8ed416f8b20067114
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 6fda68a91727..0991e18ee669 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -4422,21 +4422,18 @@ void SAL_CALL SwXCellRange::sort(const uno::Sequence< beans::PropertyValue >& rD sal_uInt16 SwXCellRange::getColumnCount(void) { - return static_cast< sal_uInt16 >(aRgDesc.nRight - aRgDesc.nLeft + 1); + return static_cast<sal_uInt16>(aRgDesc.nRight - aRgDesc.nLeft + 1); } sal_uInt16 SwXCellRange::getRowCount(void) { - return static_cast< sal_uInt16 >(aRgDesc.nBottom - aRgDesc.nTop + 1); + return static_cast<sal_uInt16>(aRgDesc.nBottom - aRgDesc.nTop + 1); } const SwUnoCrsr* SwXCellRange::GetTblCrsr() const { - const SwUnoCrsr* pRet = 0; SwFrmFmt* pFmt = GetFrmFmt(); - if(pFmt) - pRet = pTblCrsr; - return pRet; + return pFmt ? pTblCrsr : nullptr; } void SwXCellRange::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) |