diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgcache.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index 00c20d4cc3cf..f2d22e50a639 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -135,7 +135,7 @@ void StgCache::Erase( const rtl::Reference< StgPage > &xElem ) { OSL_ENSURE( xElem.is(), "The pointer should not be NULL!" ); if ( xElem.is() ) { - for ( LRUList::iterator it = maLRUPages.begin(); it != maLRUPages.end(); it++ ) { + for ( LRUList::iterator it = maLRUPages.begin(); it != maLRUPages.end(); ++it ) { if ( it->is() && (*it)->GetPage() == xElem->GetPage() ) { it->clear(); break; @@ -149,7 +149,7 @@ void StgCache::Erase( const rtl::Reference< StgPage > &xElem ) void StgCache::Clear() { maDirtyPages.clear(); - for ( LRUList::iterator it = maLRUPages.begin(); it != maLRUPages.end(); it++ ) + for ( LRUList::iterator it = maLRUPages.begin(); it != maLRUPages.end(); ++it ) it->clear(); } @@ -157,7 +157,7 @@ void StgCache::Clear() rtl::Reference< StgPage > StgCache::Find( sal_Int32 nPage ) { - for ( LRUList::iterator it = maLRUPages.begin(); it != maLRUPages.end(); it++ ) + for ( LRUList::iterator it = maLRUPages.begin(); it != maLRUPages.end(); ++it ) if ( it->is() && (*it)->GetPage() == nPage ) return *it; IndexToStgPage::iterator it2 = maDirtyPages.find( nPage ); @@ -216,12 +216,12 @@ sal_Bool StgCache::Commit() { std::vector< StgPage * > aToWrite; for ( IndexToStgPage::iterator aIt = maDirtyPages.begin(); - aIt != maDirtyPages.end(); aIt++ ) + aIt != maDirtyPages.end(); ++aIt ) aToWrite.push_back( aIt->second.get() ); std::sort( aToWrite.begin(), aToWrite.end(), StgPage::IsPageGreater ); for ( std::vector< StgPage * >::iterator aWr = aToWrite.begin(); - aWr != aToWrite.end(); aWr++) + aWr != aToWrite.end(); ++aWr) { const rtl::Reference< StgPage > &pPage = *aWr; if ( !Write( pPage->GetPage(), pPage->GetData(), 1 ) ) |