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 )
if( bOnlineSpellChgd )
{
SwViewShell *pSh = static_cast<SwViewShell*>(this->GetNext());
bool bOnlineSpl = rOpt.IsOnlineSpell();
while( pSh != this )
{ pSh->mpOpt->SetOnlineSpell( bOnlineSpl );
vcl::Window *pTmpWin = pSh->GetWin();
for(SwViewShell& rSh : GetRingContainer())
{
if(&rSh == this)
continue;
rSh.mpOpt->SetOnlineSpell( bOnlineSpl );
vcl::Window *pTmpWin = rSh.GetWin();
if( pTmpWin )
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