summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-04-10 23:30:10 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-04-13 17:21:26 +0200
commite51e63e9e712472f367efa3bea0f2389ef349b43 (patch)
tree4b51b4a732ea0e0b4b70c0a7a163694d21e2829f /sw
parent31a3112834f3f9c9bc86234ec4fcdfae912b3fbc (diff)
simplify
Change-Id: Icd65860188686b153e3c5b367f305155d9762ff9
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index e788d0f0daf4..2b8b16e63e6f 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -564,15 +564,12 @@ void SwRangeDescriptor::Normalize()
static SwXCell* lcl_CreateXCell(SwFrmFmt* pFmt, sal_Int32 nColumn, sal_Int32 nRow)
{
- SwXCell* pXCell = nullptr;
const OUString sCellName = sw_GetCellName(nColumn, nRow);
SwTable* pTable = SwTable::FindTable(pFmt);
- SwTableBox* pBox = const_cast<SwTableBox*>(pTable->GetTblBox( sCellName ));
- if(pBox)
- {
- pXCell = SwXCell::CreateXCell(pFmt, pBox, pTable);
- }
- return pXCell;
+ SwTableBox* pBox = const_cast<SwTableBox*>(pTable->GetTblBox(sCellName));
+ if(!pBox)
+ return nullptr;
+ return SwXCell::CreateXCell(pFmt, pBox, pTable);
}
static void lcl_InspectLines(SwTableLines& rLines, std::vector<OUString>& rAllNames)