Kaydet (Commit) 13bf1976 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Fridrich Štrba

if/else branches contain same code

üst 4aa72e0d
...@@ -749,25 +749,12 @@ void Chart2Positioner::createPositionMap() ...@@ -749,25 +749,12 @@ void Chart2Positioner::createPositionMap()
for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol, ++nInsCol) for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol, ++nInsCol)
{ {
if (bNoGlue || meGlue == GLUETYPE_ROWS) pCol = static_cast<Table*>(pCols->Get(nInsCol));
if (!pCol)
{ {
pCol = static_cast<Table*>(pCols->Get(nInsCol)); pCol = pNewRowTable.get();
if (!pCol) pCols->Insert(nInsCol, pNewRowTable.release());
{ pNewRowTable.reset(new Table);
pCol = pNewRowTable.get();
pCols->Insert(nInsCol, pNewRowTable.release());
pNewRowTable.reset(new Table);
}
}
else
{
pCol = static_cast<Table*>(pCols->Get(nInsCol));
if (!pCol)
{
pCol = pNewRowTable.get();
pCols->Insert(nInsCol, pNewRowTable.release());
pNewRowTable.reset(new Table);
}
} }
sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1); sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1);
......
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