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 | 145c687c0a97806f441d7d5826bc737308c5abdd (patch) | |
tree | 944c51b678b85e007a28bca7789a8585090ae640 /idl | |
parent | 20102adb2aa27a25b59aad33b2311afd94d7727a (diff) |
Revert "WaE: declaration of 'it' shadows a previous local"
This reverts commit b6702790cda29c6b2e7b5ed24fe2a4e2110cf021.
Diffstat (limited to 'idl')
-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 7bcc6d168b..ab27d1ba0b 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 ) |