summaryrefslogtreecommitdiff
path: root/sw/qa/uibase/shells
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-08-09 17:46:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-08-09 19:18:23 +0200
commit7c71d1c296e8a1976aa418e9a6c8e4af1b157c93 (patch)
tree195383555e3b7b72385adacdc77481d5f1899d46 /sw/qa/uibase/shells
parentdd87f62ed7163098c5497fa1caddfebb947e27eb (diff)
simplify
Change-Id: I7d8e8b13166537d0e9c60ff0be01f680a817ca5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171699 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa/uibase/shells')
-rw-r--r--sw/qa/uibase/shells/shells.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/qa/uibase/shells/shells.cxx b/sw/qa/uibase/shells/shells.cxx
index 59720ff244df..e4ed7367fc29 100644
--- a/sw/qa/uibase/shells/shells.cxx
+++ b/sw/qa/uibase/shells/shells.cxx
@@ -579,13 +579,8 @@ CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testInsertFieldmarkReadonly)
// Then make sure the read-only content refuses to accept that inner fieldmark, so we still have
// just one:
- size_t nActual = 0;
IDocumentMarkAccess& rIDMA = *pDoc->getIDocumentMarkAccess();
- for (auto it = rIDMA.getFieldmarksBegin(); it != rIDMA.getFieldmarksEnd(); ++it)
- {
- ++nActual;
- }
- CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), nActual);
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1), rIDMA.getFieldmarksCount());
}
CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testUpdateRefmarks)