summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
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));
}
}
}