summaryrefslogtreecommitdiff
path: root/forms/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 16:12:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 12:50:55 +0200
commit20571c472528c4f98fe3f55700d134915d32a49a (patch)
tree9b350824d845b8aaeb13d087ef74febb454b821b /forms/source/misc
parentb401896a56149aa2871b65a330a6f601a9830ccd (diff)
use more range-for on uno::Sequence
Change-Id: Ifad32425d79be5a22d33d721bdc5fb993f699759 Reviewed-on: https://gerrit.libreoffice.org/39763 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/misc')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index c251c17d3587..2d7430ed6cfb 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -398,12 +398,8 @@ void OInterfaceContainer::transformEvents()
if ( aChildEvents.getLength() )
{
- // the "iterators" for the events for this child
- ScriptEventDescriptor* pChildEvents = aChildEvents.getArray();
- ScriptEventDescriptor* pChildEventsEnd = pChildEvents + aChildEvents.getLength();
-
// do the transformation
- ::std::for_each( pChildEvents, pChildEventsEnd, TransformEventTo52Format() );
+ ::std::for_each( aChildEvents.begin(), aChildEvents.end(), TransformEventTo52Format() );
// revoke the script events
m_xEventAttacher->revokeScriptEvents( i );