From 322a6ca8f912513f69747a68fe5497ee6b643293 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 29 May 2024 13:49:41 +0200 Subject: AreObjectsMarked -> GetMarkedObjectList().GetMarkCount() != 0 In order to reduce number of calls to GetMarkedObjectList() later on Change-Id: Ib2eb7c88338e64744f886a338acca65f782f8170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168218 Tested-by: Jenkins Tested-by: Xisco Fauli Reviewed-by: Xisco Fauli --- sc/qa/unit/anchor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/qa/unit/anchor.cxx') diff --git a/sc/qa/unit/anchor.cxx b/sc/qa/unit/anchor.cxx index 0dfffdd8ba4b..d5f5975f5e45 100644 --- a/sc/qa/unit/anchor.cxx +++ b/sc/qa/unit/anchor.cxx @@ -100,7 +100,7 @@ void ScAnchorTest::testUndoAnchor() // Select graphic object pDrawView->MarkNextObj(); - CPPUNIT_ASSERT(pDrawView->AreObjectsMarked()); + CPPUNIT_ASSERT(pDrawView->GetMarkedObjectList().GetMarkCount() != 0); // Set Cell Anchor ScDrawLayer::SetCellAnchoredFromPosition(*pObject, rDoc, 0, false); -- cgit