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 | 1eb3e17796fbcc67422a0c3ae0a45dbd1209ce76 (patch) | |
tree | 09bafd9d88733570202f053f9bf1f0bdd7ed9878 /idl/source | |
parent | 30e7369173dee7fae0b0de6eb9fab3c4b5df7566 (diff) |
WaE: declaration of 'it' shadows a previous local
Diffstat (limited to 'idl/source')
-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 96cd09677f58..41e4ae14fc2e 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 ) |