summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-01-03 11:29:59 +0600
committerMichael Stahl <michael.stahl@allotropia.de>2024-01-10 13:26:27 +0100
commitc0f8ebe8554f55489e22820e3f230e937243289c (patch)
tree6a441c35104e0bc213919080f6030dc13ede89df /sw
parent6bd230862605760bd4357e6e4bba2c91dcbe5438 (diff)
Use loadFromURL to simplify
Change-Id: I0a1acf2b20265a603d4f28a62a9f47d49e201f9b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161577 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161887 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport20.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport20.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport20.cxx
index 317937fb3742..4324976879f8 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport20.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport20.cxx
@@ -1026,7 +1026,7 @@ CPPUNIT_TEST_FIXTURE(Test, testtdf158044)
CPPUNIT_TEST_FIXTURE(Test, testTdf158855)
{
// Given a table immediately followed by a section break
- load(createFileURL(u"section_break_after_table.docx"));
+ loadFromURL(u"section_break_after_table.docx");
// Check that the import doesn't produce an extra empty paragraph before a page break
CPPUNIT_ASSERT_EQUAL(2, getPages()); // was 3
@@ -1045,7 +1045,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf158855)
CPPUNIT_TEST_FIXTURE(Test, testTdf158971)
{
// Given a section break and an SDT in the following paragraph
- load(createFileURL(u"sdt_after_section_break.docx"));
+ loadFromURL(u"sdt_after_section_break.docx");
// Check that the import doesn't introduce unwanted character properties in the paragraph after
// the section break