diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-29 12:49:12 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-29 17:06:45 +0200 |
commit | 12c76a4fa169ee2362e79ea19284ed132eac9084 (patch) | |
tree | 12dd6df199521e390ba6dad065c5cf9c0a1bf828 /sw/source/uibase/utlui | |
parent | be76f48d602e5d0a1091973b2df7f20cb7f1a545 (diff) |
GetMarkedObjectCount() -> GetMarkedObjectList().GetMarkCount()
In order to reduce number of calls to GetMarkedObjectList() later on
Change-Id: Id94f66545950f0fdf124ba7b985a5215a01d63fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168213
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index d044b611eb59..78177a9e226c 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -4317,7 +4317,7 @@ void SwContentTree::UpdateTracking() SdrView* pSdrView = m_pActiveShell->GetDrawView(); if (pSdrView) { - for (size_t nIdx(0); nIdx < pSdrView->GetMarkedObjectCount(); nIdx++) + for (size_t nIdx(0); nIdx < pSdrView->GetMarkedObjectList().GetMarkCount(); nIdx++) { SdrObject* pSelected = pSdrView->GetMarkedObjectByIndex(nIdx); OUString aName(pSelected->GetName()); |