diff options
-rw-r--r-- | drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/table/tableproperties.cxx | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index 0832e4dce2e8..f87afc62ff2c 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -89,7 +89,7 @@ namespace bool bOkay(false); aBuffers::iterator aFound(maFreeBuffers.end()); - for(aBuffers::iterator a(maFreeBuffers.begin()); a != maFreeBuffers.end(); a++) + for(aBuffers::iterator a(maFreeBuffers.begin()); a != maFreeBuffers.end(); ++a) { OSL_ENSURE(*a, "Empty pointer in VDevBuffer (!)"); diff --git a/oox/source/drawingml/table/tableproperties.cxx b/oox/source/drawingml/table/tableproperties.cxx index e9d7e5ee8c86..440a0a541232 100644 --- a/oox/source/drawingml/table/tableproperties.cxx +++ b/oox/source/drawingml/table/tableproperties.cxx @@ -139,12 +139,14 @@ void TableProperties::pushToPropSet( const ::oox::core::XmlFilterBase& rFilterBa const TableStyle& rTableStyle( getUsedTableStyle( rFilterBase ) ); sal_Int32 nRow = 0; - std::vector< TableRow >::iterator aTableRowIter( mvTableRows.begin() ); - while( aTableRowIter != mvTableRows.end() ) + const std::vector< TableRow >::const_iterator aTableRowEnd( mvTableRows.end() ); + for (std::vector< TableRow >::iterator aTableRowIter( mvTableRows.begin() ); + aTableRowIter != aTableRowEnd ; ++aTableRowIter, ++nRow) { sal_Int32 nColumn = 0; - std::vector< TableCell >::iterator aTableCellIter( aTableRowIter->getTableCells().begin() ); - while( aTableCellIter != aTableRowIter->getTableCells().end() ) + const std::vector< TableCell >::const_iterator aTableCellEnd( aTableRowIter->getTableCells().end() ); + for (std::vector< TableCell >::iterator aTableCellIter( aTableRowIter->getTableCells().begin() ); + aTableCellIter != aTableCellEnd ; ++aTableCellIter, ++nColumn) { TableCell& rTableCell( *aTableCellIter ); if ( !rTableCell.getvMerge() && !rTableCell.gethMerge() ) @@ -157,11 +159,7 @@ void TableProperties::pushToPropSet( const ::oox::core::XmlFilterBase& rFilterBa rTableCell.pushToXCell( rFilterBase, pMasterTextListStyle, xCellRange->getCellByPosition( nColumn, nRow ), *this, rTableStyle, nColumn, aTableRowIter->getTableCells().size(), nRow, mvTableRows.size() ); } - nColumn++; - aTableCellIter++; } - nRow++; - aTableRowIter++; } } |