Kaydet (Commit) 1eb3e177 authored tarafından David Tardon's avatar David Tardon

WaE: declaration of 'it' shadows a previous local

üst 30e73691
...@@ -1192,14 +1192,16 @@ void SvMetaSlot::WriteSlot( const ByteString & rShellName, sal_uInt16 nCount, ...@@ -1192,14 +1192,16 @@ void SvMetaSlot::WriteSlot( const ByteString & rShellName, sal_uInt16 nCount,
// look for the next slot with the same StateMethod like me // look for the next slot with the same StateMethod like me
// the slotlist is set to the current slot // 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()) ) for ( ; it != rSlotList.end(); ++it)
break; {
pNextSlot = (*it)->xSlot;
if (!pNextSlot || (!pNextSlot->pNextSlot && pNextSlot->GetStateMethod() == GetStateMethod()) )
break;
}
} }
if ( !pNextSlot ) if ( !pNextSlot )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment