diff options
author | David Tardon <dtardon@redhat.com> | 2011-03-29 10:43:11 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-03-29 10:43:11 +0200 |
commit | b6702790cda29c6b2e7b5ed24fe2a4e2110cf021 (patch) | |
tree | 67fb2baaf45dc33ca576bf0c7661fce35642ea3e | |
parent | 19322b0531233a2e408287451392e333cee16d49 (diff) |
WaE: declaration of 'it' shadows a previous local
-rwxr-xr-x | idl/source/objects/slot.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index ab27d1ba0b..7bcc6d168b 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 ) |