diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-04-06 13:31:22 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-04-12 22:36:23 +0200 |
commit | 6fbdc7cb86db2495a70acaf91e7c74575bf7bf6b (patch) | |
tree | 4dd3d150d2153e101586547f5644a9cc626dcfb9 /sw | |
parent | c860df99d26061588f428f75e3881f755a72811b (diff) |
Use range-for loop
Change-Id: I971bdbe38b78a9d0cba2ddbf189171fb9a21013f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 248fa1f8ff82..ed8a079a198a 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -421,9 +421,9 @@ bool SwEditShell::SetCurFtn( const SwFmtFtn& rFillFtn ) bool SwEditShell::HasFtns( bool bEndNotes ) const { const SwFtnIdxs &rIdxs = mpDoc->GetFtnIdxs(); - for ( sal_uInt16 i = 0; i < rIdxs.size(); ++i ) + for ( auto pIdx : rIdxs ) { - const SwFmtFtn &rFtn = rIdxs[i]->GetFtn(); + const SwFmtFtn &rFtn = pIdx->GetFtn(); if ( bEndNotes == rFtn.IsEndNote() ) return true; } |