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

use C++11 iteration

Change-Id: Ic51ddaf05c6377c27dfe81277228b43c305fc632
üst 0dcdbefa
...@@ -1776,14 +1776,12 @@ static void lcl_MoveAllLowerObjs( SwFrm* pFrm, const Point& rOffset ) ...@@ -1776,14 +1776,12 @@ static void lcl_MoveAllLowerObjs( SwFrm* pFrm, const Point& rOffset )
svt::EmbeddedObjectRef& xObj = pNode->GetOLEObj().GetObject(); svt::EmbeddedObjectRef& xObj = pNode->GetOLEObj().GetObject();
if ( xObj.is() ) if ( xObj.is() )
{ {
SwViewShell* pTmp = pSh; for(SwViewShell& rSh : pSh->GetRingContainer())
do
{ {
SwFEShell* pFEShell = dynamic_cast< SwFEShell* >( pTmp ); SwFEShell* pFEShell = dynamic_cast< SwFEShell* >( &rSh );
if ( pFEShell ) if ( pFEShell )
pFEShell->MoveObjectIfActive( xObj, rOffset ); pFEShell->MoveObjectIfActive( xObj, rOffset );
pTmp = static_cast<SwViewShell*>( pTmp->GetNext() ); }
} while( pTmp != pSh );
} }
} }
} }
......
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