diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-29 13:49:41 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-30 08:44:37 +0200 |
commit | 322a6ca8f912513f69747a68fe5497ee6b643293 (patch) | |
tree | 21c616c42d9596e535ae8ed3e757b6ccfb38f42c /sc/qa/unit/uicalc/uicalc2.cxx | |
parent | 2d362fab91fb70fbe7026c1e96452fe06fa5736e (diff) |
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 <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/unit/uicalc/uicalc2.cxx')
-rw-r--r-- | sc/qa/unit/uicalc/uicalc2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/uicalc/uicalc2.cxx b/sc/qa/unit/uicalc/uicalc2.cxx index 346255a42303..b1ee2a0c9856 100644 --- a/sc/qa/unit/uicalc/uicalc2.cxx +++ b/sc/qa/unit/uicalc/uicalc2.cxx @@ -69,7 +69,8 @@ static void lcl_SelectObjectByName(ScTabViewShell& rViewShell, std::u16string_vi OString(OUStringToOString(rObjName, RTL_TEXTENCODING_UTF8) + " not found.").getStr(), bFound); - CPPUNIT_ASSERT(rViewShell.GetViewData().GetScDrawView()->AreObjectsMarked()); + CPPUNIT_ASSERT(rViewShell.GetViewData().GetScDrawView()->GetMarkedObjectList().GetMarkCount() + != 0); } CPPUNIT_TEST_FIXTURE(ScUiCalcTest2, testTdf150499) |