summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xidl/source/objects/slot.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 96cd09677f58..41e4ae14fc2e 100755
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -1192,14 +1192,16 @@ 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)
{
- pNextSlot = (*it)->xSlot;
+ SvSlotElementList::iterator it = ( pCurSlot != rSlotList.end() ) ? ++pCurSlot : rSlotList.end();
- if (!pNextSlot || (!pNextSlot->pNextSlot && pNextSlot->GetStateMethod() == GetStateMethod()) )
- break;
+ for ( ; it != rSlotList.end(); ++it)
+ {
+ pNextSlot = (*it)->xSlot;
+
+ if (!pNextSlot || (!pNextSlot->pNextSlot && pNextSlot->GetStateMethod() == GetStateMethod()) )
+ break;
+ }
}
if ( !pNextSlot )