summaryrefslogtreecommitdiff
path: root/vcl/source/control/throbber.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-10-14 12:00:03 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-14 17:30:32 +0200
commit19be86249dcc5b13b3c95f5469600fa2bc1b749b (patch)
treee1468590650eea60e3897a8cb8b7c36bb9ab996b /vcl/source/control/throbber.cxx
parent7758115d15ded2afd81946df0865ecc831b179aa (diff)
Simplify containers iterations in vcl
Use range-based loop or replace with STL functions. Change-Id: Ide2f89194238ae6a1f21e8132e2297710d9e6dcd Reviewed-on: https://gerrit.libreoffice.org/61756 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/throbber.cxx')
-rw-r--r--vcl/source/control/throbber.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/control/throbber.cxx b/vcl/source/control/throbber.cxx
index eae208bf1698..48f1f47733e6 100644
--- a/vcl/source/control/throbber.cxx
+++ b/vcl/source/control/throbber.cxx
@@ -78,13 +78,10 @@ namespace
aImages.reserve( aImageURLs.size() );
::comphelper::NamedValueCollection aMediaProperties;
- for ( ::std::vector< OUString >::const_iterator imageURL = aImageURLs.begin();
- imageURL != aImageURLs.end();
- ++imageURL
- )
+ for ( const auto& rImageURL : aImageURLs )
{
Reference< XGraphic > xGraphic;
- aMediaProperties.put( "URL", *imageURL );
+ aMediaProperties.put( "URL", rImageURL );
xGraphic.set( xGraphicProvider->queryGraphic( aMediaProperties.getPropertyValues() ), UNO_QUERY );
aImages.emplace_back( xGraphic );
}