diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-03-29 18:12:23 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-03-29 18:12:23 +0200 |
commit | 1b8ebff421dfe0659f9bb5bbf0c44f8d3282bdd6 (patch) | |
tree | 8620e390754588d53867445c9efe7a99187848b1 /idl/source/objects/slot.cxx | |
parent | 8abd6380239f72185bb2fdf54750a46fdc7a2539 (diff) |
Revert "tweak list access to prevent iterating past end"
This reverts commit df8759a593bf11fc626b19f2ea797731824200d1.
Diffstat (limited to 'idl/source/objects/slot.cxx')
-rwxr-xr-x | idl/source/objects/slot.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 96cd09677f58..d4f7be793cc5 100755 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1191,10 +1191,7 @@ void SvMetaSlot::WriteSlot( const ByteString & rShellName, sal_uInt16 nCount, { // look for the next slot with the same StateMethod like me // the slotlist is set to the current slot - - SvSlotElementList::iterator it = ( pCurSlot != rSlotList.end() ) ? ++pCurSlot : rSlotList.end(); - - for ( ; it != rSlotList.end(); ++it) + for (SvSlotElementList::iterator it = pCurSlot+1; it != rSlotList.end(); ++it) { pNextSlot = (*it)->xSlot; |