summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-03-29 18:12:08 +0200
committerJan Holesovsky <kendy@suse.cz>2011-03-29 18:12:08 +0200
commit8abd6380239f72185bb2fdf54750a46fdc7a2539 (patch)
tree0b0d98aacc67ce06864410dd3284b982a21ec11c /idl
parent6b46285d0f3c54de1dc50d32217a0d95f81897e7 (diff)
Revert "WaE: declaration of 'it' shadows a previous local"
Diffstat (limited to 'idl')
-rwxr-xr-xidl/source/objects/slot.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 41e4ae14fc2e..96cd09677f58 100755
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -1192,16 +1192,14 @@ 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();
+ SvSlotElementList::iterator it = ( pCurSlot != rSlotList.end() ) ? ++pCurSlot : rSlotList.end();
- for ( ; it != rSlotList.end(); ++it)
- {
- pNextSlot = (*it)->xSlot;
+ for ( ; it != rSlotList.end(); ++it)
+ {
+ pNextSlot = (*it)->xSlot;
- if (!pNextSlot || (!pNextSlot->pNextSlot && pNextSlot->GetStateMethod() == GetStateMethod()) )
- break;
- }
+ if (!pNextSlot || (!pNextSlot->pNextSlot && pNextSlot->GetStateMethod() == GetStateMethod()) )
+ break;
}
if ( !pNextSlot )