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

if/else branches contain same code

üst 4aa72e0d
...@@ -748,18 +748,6 @@ void Chart2Positioner::createPositionMap() ...@@ -748,18 +748,6 @@ void Chart2Positioner::createPositionMap()
(bNoGlue ? 0 : static_cast<sal_uInt32>(nCol1)); (bNoGlue ? 0 : static_cast<sal_uInt32>(nCol1));
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 = pNewRowTable.get();
pCols->Insert(nInsCol, pNewRowTable.release());
pNewRowTable.reset(new Table);
}
}
else
{ {
pCol = static_cast<Table*>(pCols->Get(nInsCol)); pCol = static_cast<Table*>(pCols->Get(nInsCol));
if (!pCol) if (!pCol)
...@@ -768,7 +756,6 @@ void Chart2Positioner::createPositionMap() ...@@ -768,7 +756,6 @@ void Chart2Positioner::createPositionMap()
pCols->Insert(nInsCol, pNewRowTable.release()); pCols->Insert(nInsCol, pNewRowTable.release());
pNewRowTable.reset(new Table); pNewRowTable.reset(new Table);
} }
}
sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1); sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1);
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow, ++nInsRow) for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow, ++nInsRow)
......
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