diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 14:37:20 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-04 17:46:18 +0100 |
commit | 6aca1a26c3d46cd9b79bf7b109622352b1d0e12b (patch) | |
tree | e306274f11a6b73039c0e49c6a6aab6bc2a4225b /sw | |
parent | e04d4d196a91fce2370fd44f0bd23a195589860d (diff) |
use C++11 iteration
Change-Id: I30a252d2d518a361e16050f6eeffbe4371a9c982
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 4bb958817c32..937fcf0065e2 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -537,11 +537,8 @@ void SwShellCrsr::FillRects() void SwShellCrsr::Show() { - SwShellCrsr * pTmp = this; - do { - if (pTmp) - pTmp->SwSelPaintRects::Show(); - } while( this != ( pTmp = dynamic_cast<SwShellCrsr*>(pTmp->GetNext()) ) ); + for(SwPaM& rTmp : GetRingContainer()) + dynamic_cast<SwShellCrsr*>(&rTmp)->SwSelPaintRects::Show(); } // This rectangle gets painted anew, therefore the SSelection in this |