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

simplify

Change-Id: Icd65860188686b153e3c5b367f305155d9762ff9
üst 31a31128
...@@ -564,15 +564,12 @@ void SwRangeDescriptor::Normalize() ...@@ -564,15 +564,12 @@ void SwRangeDescriptor::Normalize()
static SwXCell* lcl_CreateXCell(SwFrmFmt* pFmt, sal_Int32 nColumn, sal_Int32 nRow) static SwXCell* lcl_CreateXCell(SwFrmFmt* pFmt, sal_Int32 nColumn, sal_Int32 nRow)
{ {
SwXCell* pXCell = nullptr;
const OUString sCellName = sw_GetCellName(nColumn, nRow); const OUString sCellName = sw_GetCellName(nColumn, nRow);
SwTable* pTable = SwTable::FindTable(pFmt); SwTable* pTable = SwTable::FindTable(pFmt);
SwTableBox* pBox = const_cast<SwTableBox*>(pTable->GetTblBox( sCellName )); SwTableBox* pBox = const_cast<SwTableBox*>(pTable->GetTblBox(sCellName));
if(pBox) if(!pBox)
{ return nullptr;
pXCell = SwXCell::CreateXCell(pFmt, pBox, pTable); return SwXCell::CreateXCell(pFmt, pBox, pTable);
}
return pXCell;
} }
static void lcl_InspectLines(SwTableLines& rLines, std::vector<OUString>& rAllNames) static void lcl_InspectLines(SwTableLines& rLines, std::vector<OUString>& rAllNames)
......
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