summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-07-15 07:51:13 +0200
committerDavid Tardon <dtardon@redhat.com>2011-07-15 07:51:37 +0200
commit86c53492cc40e2d43bd3dac89698b844df961e0e (patch)
treee79ddc5a58c07e6e44dd849f011b8f05daf2be1e /svtools
parent99a8c8dac8929dc83db36162e14932d3468b1330 (diff)
error: attempt to increment a singular iterator
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/grfcache.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 4251c1ba7fe2..e0aa6595f6ac 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -325,21 +325,19 @@ void GraphicCacheEntry::AddGraphicObjectReference( const GraphicObject& rObj, Gr
bool GraphicCacheEntry::ReleaseGraphicObjectReference( const GraphicObject& rObj )
{
- bool bRet = false;
-
for(
GraphicObjectList_impl::iterator it = maGraphicObjectList.begin();
- ( it < maGraphicObjectList.end() ) && !bRet;
+ it != maGraphicObjectList.end();
++it
) {
if( &rObj == *it )
{
maGraphicObjectList.erase( it );
- bRet = true;
+ return true;
}
}
- return bRet;
+ return false;
}
// -----------------------------------------------------------------------------