Kaydet (Commit) 1a2097e6 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Noel Grandin

Use for-range loop in include/canvas

Change-Id: I29c4af5a59f72c478090f1b8625a0507d461374a
Reviewed-on: https://gerrit.libreoffice.org/52077Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8e27afa5
......@@ -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(),
......
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