summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-02-12 00:46:46 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-02-21 17:44:58 +0100
commitf473167aaaa85f74a1da247340d7bd18a2128933 (patch)
tree8f1858552fe48f5653feb147b8ff24156c79a508 /sw/source
parentbdfe8a2680b27f2f887729f80d8c0cbb831a0674 (diff)
Use range-for loop
Change-Id: I1a4c031cb1d65dbdb4f9290997eb65e7738df1d3
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/doc/docfly.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx
index 6c26ce497d56..0e39cfb64537 100644
--- a/sw/source/core/doc/docfly.cxx
+++ b/sw/source/core/doc/docfly.cxx
@@ -970,10 +970,9 @@ int SwDoc::Chainable( const SwFrmFmt &rSource, const SwFrmFmt &rDest )
return SW_CHAIN_NOT_EMPTY;
}
- sal_uInt16 nArrLen = GetSpzFrmFmts()->size();
- for( sal_uInt16 n = 0; n < nArrLen; ++n )
+ for( auto pSpzFrmFm : *GetSpzFrmFmts() )
{
- const SwFmtAnchor& rAnchor = (*GetSpzFrmFmts())[ n ]->GetAnchor();
+ const SwFmtAnchor& rAnchor = pSpzFrmFm->GetAnchor();
sal_uLong nTstSttNd;
// #i20622# - to-frame anchored objects are allowed.
if ( ((rAnchor.GetAnchorId() == FLY_AT_PARA) ||