summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshb.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 /sc/source/ui/view/tabvwshb.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 'sc/source/ui/view/tabvwshb.cxx')
-rw-r--r--sc/source/ui/view/tabvwshb.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 13ba1dcf04c0..7b34b1fce5d8 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -646,7 +646,7 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet)
break;
case SID_INSERT_SIGNATURELINE:
- if ( bTabProt || bShared || (pSdrView && pSdrView->GetMarkedObjectCount() != 0))
+ if ( bTabProt || bShared || (pSdrView && pSdrView->GetMarkedObjectList().GetMarkCount() != 0))
rSet.DisableItem( nWhich );
break;
case SID_EDIT_SIGNATURELINE:
@@ -656,7 +656,7 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet)
break;
case SID_INSERT_QRCODE:
- if ( bTabProt || bShared || (pSdrView && pSdrView->GetMarkedObjectCount() != 0))
+ if ( bTabProt || bShared || (pSdrView && pSdrView->GetMarkedObjectList().GetMarkCount() != 0))
rSet.DisableItem( nWhich );
break;
case SID_EDIT_QRCODE:
@@ -704,7 +704,7 @@ bool ScTabViewShell::IsSignatureLineSelected()
if (!pSdrView)
return false;
- if (pSdrView->GetMarkedObjectCount() != 1)
+ if (pSdrView->GetMarkedObjectList().GetMarkCount() != 1)
return false;
SdrObject* pPickObj = pSdrView->GetMarkedObjectByIndex(0);
@@ -724,7 +724,7 @@ bool ScTabViewShell::IsQRCodeSelected()
if (!pSdrView)
return false;
- if (pSdrView->GetMarkedObjectCount() != 1)
+ if (pSdrView->GetMarkedObjectList().GetMarkCount() != 1)
return false;
SdrObject* pPickObj = pSdrView->GetMarkedObjectByIndex(0);
@@ -750,7 +750,7 @@ bool ScTabViewShell::IsSignatureLineSigned()
if (!pSdrView)
return false;
- if (pSdrView->GetMarkedObjectCount() != 1)
+ if (pSdrView->GetMarkedObjectList().GetMarkCount() != 1)
return false;
SdrObject* pPickObj = pSdrView->GetMarkedObjectByIndex(0);