diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-27 12:40:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-27 12:47:55 +0000 |
commit | 2abe5dd5585ed7c2525bfa58729add0196af4069 (patch) | |
tree | 63c0eded3763d8d25363f9ea784576a11501c6cc /toolkit | |
parent | 6fc9d45a94ab40f24f3245e1b1e5e67941b26899 (diff) |
cppcheck: use prefix form
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/layout/core/table.cxx | 12 | ||||
-rw-r--r-- | toolkit/source/layout/core/timer.cxx | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/toolkit/source/layout/core/table.cxx b/toolkit/source/layout/core/table.cxx index b990a88f38f0..53faefff1271 100644 --- a/toolkit/source/layout/core/table.cxx +++ b/toolkit/source/layout/core/table.cxx @@ -125,7 +125,7 @@ Table::getMinimumSize() throw( uno::RuntimeException ) int col = 0; int row = 0; for ( std::list<Box_Base::ChildData *>::iterator it - = maChildren.begin(); it != maChildren.end(); it++ ) + = maChildren.begin(); it != maChildren.end(); ++it ) { ChildData *child = static_cast<Table::ChildData*> ( *it ); if ( !child->isVisible() ) @@ -172,7 +172,7 @@ Table::getMinimumSize() throw( uno::RuntimeException ) // 2.1 base sizes on one-column/row children for ( std::list<Box_Base::ChildData *>::iterator it - = maChildren.begin(); it != maChildren.end(); it++ ) + = maChildren.begin(); it != maChildren.end(); ++it ) { ChildData *child = static_cast<Table::ChildData*> ( *it ); if ( !child->isVisible() ) @@ -195,7 +195,7 @@ Table::getMinimumSize() throw( uno::RuntimeException ) // 2.2 make sure multiple-columns/rows children fit for ( std::list<Box_Base::ChildData *>::iterator it - = maChildren.begin(); it != maChildren.end(); it++ ) + = maChildren.begin(); it != maChildren.end(); ++it ) { ChildData *child = static_cast<Table::ChildData*> ( *it ); if ( !child->isVisible() ) @@ -237,14 +237,14 @@ Table::getMinimumSize() throw( uno::RuntimeException ) mnColExpandables =( mnRowExpandables = 0 ); maRequisition.Width =( maRequisition.Height = 0 ); for ( std::vector<GroupData>::iterator it = maCols.begin(); - it != maCols.end(); it++ ) + it != maCols.end(); ++it ) { maRequisition.Width += it->mnSize; if ( it->mbExpand ) mnColExpandables++; } for ( std::vector<GroupData>::iterator it = maRows.begin(); - it != maRows.end(); it++ ) + it != maRows.end(); ++it ) { maRequisition.Height += it->mnSize; if ( it->mbExpand ) @@ -269,7 +269,7 @@ Table::allocateArea( const awt::Rectangle &rArea ) nExtraSize[ 1 ] /= mnRowExpandables ? mnRowExpandables : maRows.size(); for ( std::list<Box_Base::ChildData *>::const_iterator it - = maChildren.begin(); it != maChildren.end(); it++ ) + = maChildren.begin(); it != maChildren.end(); ++it ) { ChildData *child = static_cast<Table::ChildData*> ( *it ); if ( !child->isVisible() ) diff --git a/toolkit/source/layout/core/timer.cxx b/toolkit/source/layout/core/timer.cxx index 18be0e19a122..279c0ea7f172 100644 --- a/toolkit/source/layout/core/timer.cxx +++ b/toolkit/source/layout/core/timer.cxx @@ -70,7 +70,7 @@ public: if ( it != jt && isParentOf( *it, *jt ) ) jt = list.erase( jt ); else - jt++; + ++jt; } } @@ -98,12 +98,12 @@ public: // 1. remove duplications and children for ( ContainerList::iterator it = mxContainers.begin(); - it != mxContainers.end(); it++ ) + it != mxContainers.end(); ++it ) eraseChildren( it, mxContainers ); // 2. check damage extent for ( ContainerList::iterator it = mxContainers.begin(); - it != mxContainers.end(); it++ ) + it != mxContainers.end(); ++it ) { uno::Reference< awt::XLayoutContainer > xContainer = *it; while ( xContainer->getParent().is() && isContainerDamaged( xContainer ) ) @@ -124,7 +124,7 @@ public: // 3. force re-calculations for ( ContainerList::iterator it = mxContainers.begin(); - it != mxContainers.end(); it++ ) + it != mxContainers.end(); ++it ) (*it)->allocateArea( (*it)->getAllocatedArea() ); } }; |