summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdview.cxx
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 /svx/source/svdraw/svdview.cxx
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 'svx/source/svdraw/svdview.cxx')
-rw-r--r--svx/source/svdraw/svdview.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index bed1294645a2..c8bf0484502d 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -856,10 +856,10 @@ bool SdrView::DoMouseEvent(const SdrViewEvent& rVEvt)
bRet=MarkNextObj(aLogicPos, mnHitTolLog, rVEvt.mbMarkPrev);
} else {
SortMarkedObjects();
- const size_t nCount0=GetMarkedObjectCount();
+ const size_t nCount0=GetMarkedObjectList().GetMarkCount();
bRet=MarkObj(aLogicPos, mnHitTolLog, rVEvt.mbAddMark);
SortMarkedObjects();
- const size_t nCount1=GetMarkedObjectCount();
+ const size_t nCount1=GetMarkedObjectList().GetMarkCount();
bUnmark=nCount1<nCount0;
}
if (!bUnmark) {
@@ -1077,7 +1077,7 @@ PointerStyle SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDe
// are 3D objects selected?
bool b3DObjSelected = false;
- for (size_t a=0; !b3DObjSelected && a<GetMarkedObjectCount(); ++a) {
+ for (size_t a=0; !b3DObjSelected && a<GetMarkedObjectList().GetMarkCount(); ++a) {
SdrObject* pObj = GetMarkedObjectByIndex(a);
if(DynCastE3dObject(pObj))
b3DObjSelected = true;
@@ -1307,7 +1307,7 @@ SdrViewContext SdrView::GetContext() const
if( IsGluePointEditMode() )
return SdrViewContext::GluePointEdit;
- const size_t nMarkCount = GetMarkedObjectCount();
+ const size_t nMarkCount = GetMarkedObjectList().GetMarkCount();
if( HasMarkablePoints() && !IsFrameHandles() )
{
@@ -1320,7 +1320,7 @@ SdrViewContext SdrView::GetContext() const
return SdrViewContext::PointEdit;
}
- if( GetMarkedObjectCount() )
+ if( GetMarkedObjectList().GetMarkCount() )
{
bool bGraf = true, bMedia = true, bTable = true;