diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-29 15:57:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 18:21:55 +0200 |
commit | 1a2097e62f70d9babcd29b90b80c813890f19ebb (patch) | |
tree | 683557386d0fd6c0ee9ddf0d5a197f6d1071fd57 /include/canvas | |
parent | 8e27afa534f5e3a0c610b36e7ed4d392b532b49d (diff) |
Use for-range loop in include/canvas
Change-Id: I29c4af5a59f72c478090f1b8625a0507d461374a
Reviewed-on: https://gerrit.libreoffice.org/52077
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/canvas')
-rw-r--r-- | include/canvas/spriteredrawmanager.hxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/canvas/spriteredrawmanager.hxx b/include/canvas/spriteredrawmanager.hxx index edb10e9abfc7..e7df64e81d93 100644 --- a/include/canvas/spriteredrawmanager.hxx +++ b/include/canvas/spriteredrawmanager.hxx @@ -326,17 +326,11 @@ namespace canvas // involved. Have to sort component lists for // sprite prio. VectorOfSprites aSortedUpdateSprites; - SpriteConnectedRanges::ComponentListType::const_iterator aCurr( - rUpdateArea.maComponentList.begin() ); - const SpriteConnectedRanges::ComponentListType::const_iterator aEnd( - rUpdateArea.maComponentList.end() ); - while( aCurr != aEnd ) + for (auto const& elem : rUpdateArea.maComponentList) { - const Sprite::Reference& rSprite( aCurr->second.getSprite() ); + const Sprite::Reference& rSprite( elem.second.getSprite() ); if( rSprite.is() ) aSortedUpdateSprites.push_back( rSprite ); - - ++aCurr; } ::std::sort( aSortedUpdateSprites.begin(), |