summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-18 13:59:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-19 08:09:38 +0200
commitf3e010829ab9d6b0b0ef48b67661774dd19f6de0 (patch)
tree4eb61dfc0c6cf4a2f9109b1f537d80f9cc928a80 /slideshow
parent1c15934170341bbcfb4671fdbb01c2259265b3e1 (diff)
use more SdrObjList::begin/end in sd
Change-Id: If39b6c561525bbf66d34edfbff0f1a3ef4531f85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158129 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/box2dtools.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/slideshow/source/engine/box2dtools.cxx b/slideshow/source/engine/box2dtools.cxx
index 4e45bb47f543..97e172a4eb4e 100644
--- a/slideshow/source/engine/box2dtools.cxx
+++ b/slideshow/source/engine/box2dtools.cxx
@@ -411,13 +411,11 @@ void box2DWorld::initiateAllShapesAsStaticBodies(
{
// if it is a group object iterate over its children and flag them
SdrObjList* aObjList = pTemp->GetSubList();
- const size_t nObjCount(aObjList->GetObjCount());
- for (size_t nObjIndex = 0; nObjIndex < nObjCount; ++nObjIndex)
+ for (const rtl::Reference<SdrObject>& pGroupMember : *aObjList)
{
- SdrObject* pGroupMember(aObjList->GetObj(nObjIndex));
aXShapeBelongsToAGroup.insert(
- std::make_pair(GetXShapeForSdrObject(pGroupMember), true));
+ std::make_pair(GetXShapeForSdrObject(pGroupMember.get()), true));
}
}
}