Kaydet (Commit) 65a1a6af authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use C++11 iteration

Change-Id: I06fa257210d58fef53eb8cdce44d5559ad0309f1
üst 548a3c8f
......@@ -328,14 +328,11 @@ void SwViewImp::InvalidateAccessibleEditableState( bool bAllShells,
{
if( bAllShells )
{
SwViewShell *pVSh = GetShell();
SwViewShell *pTmp = pVSh;
do
for(SwViewShell& rTmp : GetShell()->GetRingContainer())
{
if( pTmp->Imp()->IsAccessible() )
pTmp->Imp()->GetAccessibleMap().InvalidateStates( ACC_STATE_EDITABLE, pFrm );
pTmp = static_cast<SwViewShell *>(pTmp->GetNext());
} while ( pTmp != pVSh );
if( rTmp.Imp()->IsAccessible() )
rTmp.Imp()->GetAccessibleMap().InvalidateStates( ACC_STATE_EDITABLE, pFrm );
}
}
else if( IsAccessible() )
{
......
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