summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-03-29 18:12:08 +0200
committerJan Holesovsky <kendy@suse.cz>2011-03-29 18:12:08 +0200
commit145c687c0a97806f441d7d5826bc737308c5abdd (patch)
tree944c51b678b85e007a28bca7789a8585090ae640 /idl
parent20102adb2aa27a25b59aad33b2311afd94d7727a (diff)
Revert "WaE: declaration of 'it' shadows a previous local"
Diffstat (limited to 'idl')
-rwxr-xr-xidl/source/objects/slot.cxx14
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 )