From 8abd6380239f72185bb2fdf54750a46fdc7a2539 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 29 Mar 2011 18:12:08 +0200 Subject: Revert "WaE: declaration of 'it' shadows a previous local" This reverts commit b6702790cda29c6b2e7b5ed24fe2a4e2110cf021. --- idl/source/objects/slot.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'idl/source') 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 ) -- cgit