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

use C++11 iteration and simplify cast

Change-Id: I773bc94800ab0b2354543524fb337ccca9aa6f01
üst f3cebf36
...@@ -762,19 +762,17 @@ void AdjustSizeChgNotify( SwRootFrm *pRoot ) ...@@ -762,19 +762,17 @@ void AdjustSizeChgNotify( SwRootFrm *pRoot )
{ {
const bool bOld = pRoot->IsSuperfluous(); const bool bOld = pRoot->IsSuperfluous();
pRoot->bCheckSuperfluous = false; pRoot->bCheckSuperfluous = false;
SwViewShell *pSh = pRoot->GetCurrShell(); if ( pRoot->GetCurrShell() )
if ( pSh )
{ {
do for(SwViewShell& rSh : pRoot->GetCurrShell()->GetRingContainer())
{ {
if( pRoot == pSh->GetLayout() ) if( pRoot == rSh.GetLayout() )
{ {
pSh->SizeChgNotify(); rSh.SizeChgNotify();
if ( pSh->Imp() ) if ( rSh.Imp() )
pSh->Imp()->NotifySizeChg( pRoot->Frm().SSize() ); rSh.Imp()->NotifySizeChg( pRoot->Frm().SSize() );
} }
pSh = static_cast<SwViewShell*>(pSh->GetNext()); }
} while ( pSh != pRoot->GetCurrShell() );
} }
pRoot->bCheckSuperfluous = bOld; pRoot->bCheckSuperfluous = bOld;
} }
......
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