summaryrefslogtreecommitdiff
path: root/framework/source/uielement/imagebuttontoolbarcontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 13:45:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 08:48:26 +0200
commit89340fcb6509afd1bffea7b6060d5ff5a444b3f1 (patch)
treed5ae1feaeed8b67afb89b71e642b6306dd4ebc37 /framework/source/uielement/imagebuttontoolbarcontroller.cxx
parentf94aae5cbab5b826ea8821e9ed3b456d65c03c70 (diff)
use for-range on Sequence in f*
Change-Id: I820255001c1b96d1f4b76a203f3c0f76fa09fe66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94567 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/uielement/imagebuttontoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/imagebuttontoolbarcontroller.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/uielement/imagebuttontoolbarcontroller.cxx b/framework/source/uielement/imagebuttontoolbarcontroller.cxx
index 340999620c68..5c0cbeba873f 100644
--- a/framework/source/uielement/imagebuttontoolbarcontroller.cxx
+++ b/framework/source/uielement/imagebuttontoolbarcontroller.cxx
@@ -87,12 +87,12 @@ void ImageButtonToolbarController::executeControlCommand( const css::frame::Cont
rControlCommand.Command == "SetImage") )
return;
- for ( sal_Int32 i = 0; i < rControlCommand.Arguments.getLength(); i++ )
+ for ( const NamedValue& rArg : rControlCommand.Arguments )
{
- if ( rControlCommand.Arguments[i].Name == "URL" )
+ if ( rArg.Name == "URL" )
{
OUString aURL;
- rControlCommand.Arguments[i].Value >>= aURL;
+ rArg.Value >>= aURL;
SubstituteVariables( aURL );