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