diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-18 12:28:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-18 20:08:21 +0200 |
commit | baa67b2d7037bc5e289a144a81014f1fb42e68ed (patch) | |
tree | d0334d4a2257c6680662fdc4064289fdea8720d7 /svx/source/form/fmview.cxx | |
parent | ca58f649196ed6b4ce15d0db3935f7de4cb0f2ea (diff) |
use more SdrObjList::begin/end in svx
Change-Id: I362a2e12492391338b63708e4b329fc77ac363c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158113
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/form/fmview.cxx')
-rw-r--r-- | svx/source/form/fmview.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx index ffb0e85e2c96..8267c334bd6f 100644 --- a/svx/source/form/fmview.cxx +++ b/svx/source/form/fmview.cxx @@ -497,10 +497,9 @@ bool FmFormView::KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin) { if (FmFormPage* pCurPage = GetCurPage()) { - for (size_t a = 0; a < pCurPage->GetObjCount(); ++a) + for (const rtl::Reference<SdrObject>& pObj : *pCurPage) { - SdrObject* pObj = pCurPage->GetObj(a); - FmFormObj* pFormObject = FmFormObj::GetFormObject(pObj); + FmFormObj* pFormObject = FmFormObj::GetFormObject(pObj.get()); if (!pFormObject) continue; |