Kaydet (Commit) f473167a authored tarafından Matteo Casalin's avatar Matteo Casalin

Use range-for loop

Change-Id: I1a4c031cb1d65dbdb4f9290997eb65e7738df1d3
üst bdfe8a26
...@@ -970,10 +970,9 @@ int SwDoc::Chainable( const SwFrmFmt &rSource, const SwFrmFmt &rDest ) ...@@ -970,10 +970,9 @@ int SwDoc::Chainable( const SwFrmFmt &rSource, const SwFrmFmt &rDest )
return SW_CHAIN_NOT_EMPTY; return SW_CHAIN_NOT_EMPTY;
} }
sal_uInt16 nArrLen = GetSpzFrmFmts()->size(); for( auto pSpzFrmFm : *GetSpzFrmFmts() )
for( sal_uInt16 n = 0; n < nArrLen; ++n )
{ {
const SwFmtAnchor& rAnchor = (*GetSpzFrmFmts())[ n ]->GetAnchor(); const SwFmtAnchor& rAnchor = pSpzFrmFm->GetAnchor();
sal_uLong nTstSttNd; sal_uLong nTstSttNd;
// #i20622# - to-frame anchored objects are allowed. // #i20622# - to-frame anchored objects are allowed.
if ( ((rAnchor.GetAnchorId() == FLY_AT_PARA) || if ( ((rAnchor.GetAnchorId() == FLY_AT_PARA) ||
......
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