summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 12:49:12 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-29 17:06:45 +0200
commit12c76a4fa169ee2362e79ea19284ed132eac9084 (patch)
tree12dd6df199521e390ba6dad065c5cf9c0a1bf828 /sw/source/uibase/utlui
parentbe76f48d602e5d0a1091973b2df7f20cb7f1a545 (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.cxx2
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());