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

use C++11 iteration

Change-Id: Ifc772d50d6431d9c377d00729bfa77b4359af98a
üst b9e413c8
...@@ -2147,17 +2147,16 @@ SwLayIdle::SwLayIdle( SwRootFrm *pRt, SwViewImp *pI ) : ...@@ -2147,17 +2147,16 @@ SwLayIdle::SwLayIdle( SwRootFrm *pRt, SwViewImp *pI ) :
// We remember the shells where the cursor is visible, so we can make // We remember the shells where the cursor is visible, so we can make
// it visible again if needed after a document change. // it visible again if needed after a document change.
std::vector<bool> aBools; std::vector<bool> aBools;
SwViewShell *pSh = pImp->GetShell(); for(SwViewShell& rSh : pImp->GetShell()->GetRingContainer())
do {
{ ++pSh->mnStartAction; ++rSh.mnStartAction;
bool bVis = false; bool bVis = false;
if ( pSh->ISA(SwCrsrShell) ) if ( rSh.ISA(SwCrsrShell) )
{ {
bVis = static_cast<SwCrsrShell*>(pSh)->GetCharRect().IsOver(pSh->VisArea()); bVis = static_cast<SwCrsrShell*>(&rSh)->GetCharRect().IsOver(rSh.VisArea());
} }
aBools.push_back( bVis ); aBools.push_back( bVis );
pSh = static_cast<SwViewShell*>(pSh->GetNext()); }
} while ( pSh != pImp->GetShell() );
bool bInterrupt(false); bool bInterrupt(false);
{ {
......
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