Kaydet (Commit) 7cc956c5 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use C++11 iteration

Change-Id: I388df85bf547fd159741938307db6e04e6f0a336
üst 0426f294
...@@ -941,14 +941,11 @@ void SwViewShell::CalcLayout() ...@@ -941,14 +941,11 @@ void SwViewShell::CalcLayout()
void SwViewShell::SetFirstVisPageInvalid() void SwViewShell::SetFirstVisPageInvalid()
{ {
SwViewShell *pSh = this; for(SwViewShell& rSh : GetRingContainer())
do
{ {
if ( pSh->Imp() ) if ( rSh.Imp() )
pSh->Imp()->SetFirstVisPageInvalid(); rSh.Imp()->SetFirstVisPageInvalid();
pSh = static_cast<SwViewShell*>(pSh->GetNext()); }
} while ( pSh != this );
} }
void SwViewShell::SizeChgNotify() void SwViewShell::SizeChgNotify()
......
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