Kaydet (Commit) 354da848 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use C++11 iteration

Change-Id: Iba781628aa39e537d403b1bbbd5c8891d6068026
üst ae3e7972
...@@ -2186,14 +2186,15 @@ void SwViewShell::ImplApplyViewOptions( const SwViewOption &rOpt ) ...@@ -2186,14 +2186,15 @@ void SwViewShell::ImplApplyViewOptions( const SwViewOption &rOpt )
if( bOnlineSpellChgd ) if( bOnlineSpellChgd )
{ {
SwViewShell *pSh = static_cast<SwViewShell*>(this->GetNext());
bool bOnlineSpl = rOpt.IsOnlineSpell(); bool bOnlineSpl = rOpt.IsOnlineSpell();
while( pSh != this ) for(SwViewShell& rSh : GetRingContainer())
{ pSh->mpOpt->SetOnlineSpell( bOnlineSpl ); {
vcl::Window *pTmpWin = pSh->GetWin(); if(&rSh == this)
continue;
rSh.mpOpt->SetOnlineSpell( bOnlineSpl );
vcl::Window *pTmpWin = rSh.GetWin();
if( pTmpWin ) if( pTmpWin )
pTmpWin->Invalidate(); pTmpWin->Invalidate();
pSh = static_cast<SwViewShell*>(pSh->GetNext());
} }
} }
......
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