diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-03-29 18:12:08 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-03-29 18:12:08 +0200 |
commit | 8abd6380239f72185bb2fdf54750a46fdc7a2539 (patch) | |
tree | 0b0d98aacc67ce06864410dd3284b982a21ec11c /idl/source | |
parent | 6b46285d0f3c54de1dc50d32217a0d95f81897e7 (diff) |
Revert "WaE: declaration of 'it' shadows a previous local"
This reverts commit b6702790cda29c6b2e7b5ed24fe2a4e2110cf021.
Diffstat (limited to 'idl/source')
-rwxr-xr-x | idl/source/objects/slot.cxx | 14 |
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 ) |