summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-04 10:09:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-04 12:25:18 +0100
commitb47bca7fd71abb7fb65269f377446a26cd41cb91 (patch)
tree66221856f9bdf8ae35cf84b0b18af68ef18663e0 /svl
parent96af93e5df3ea2e775cdfebf31447abaeec6dcfa (diff)
OSequenceIterator is not necessary anymore
we have been able to iterate over a sequence for a long time now Change-Id: Ie7ed6ec25682f631e01170029f7c9f0089448836 Reviewed-on: https://gerrit.libreoffice.org/68666 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/grabbagitem.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx
index c476fe27e0c1..e5d04da41d7d 100644
--- a/svl/source/items/grabbagitem.cxx
+++ b/svl/source/items/grabbagitem.cxx
@@ -43,10 +43,8 @@ bool SfxGrabBagItem::PutValue(const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
if (rVal >>= aValue)
{
m_aMap.clear();
- comphelper::OSequenceIterator<beans::PropertyValue> i(aValue);
- while (i.hasMoreElements())
+ for (beans::PropertyValue const& aPropertyValue : aValue)
{
- auto aPropertyValue = i.nextElement().get<beans::PropertyValue>();
m_aMap[aPropertyValue.Name] = aPropertyValue.Value;
}
return true;