summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-03-29 10:43:11 +0200
committerDavid Tardon <dtardon@redhat.com>2011-03-29 10:43:11 +0200
commit1eb3e17796fbcc67422a0c3ae0a45dbd1209ce76 (patch)
tree09bafd9d88733570202f053f9bf1f0bdd7ed9878 /idl
parent30e7369173dee7fae0b0de6eb9fab3c4b5df7566 (diff)
WaE: declaration of 'it' shadows a previous local
Diffstat (limited to 'idl')
-rwxr-xr-xidl/source/objects/slot.cxx14
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 )