SwModelTestBase: use createSwDoc everywhere

Desktop / LibreOffice - Xisco Fauli [libreoffice.org] - 11 November 2022 15:26 UTC

In order to unify the code Also call getSwDoc only when it's needed so move it outside createSwDoc

Change-Id: I082d46108581e8f2e2e430e854980035f471ceac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142586

4a6b56a5a1cd SwModelTestBase: use createSwDoc everywhere
.../accessibilitycheck/AccessibilityCheckTest.cxx | 39 ++--
sw/qa/core/attr/attr.cxx | 3 +-
sw/qa/core/crsr/crsr.cxx | 17 +-
sw/qa/core/doc/doc.cxx | 30 ++-
sw/qa/core/docnode/docnode.cxx | 6 +-
sw/qa/core/draw/draw.cxx | 10 +-
sw/qa/core/edit/edit.cxx | 3 +-
sw/qa/core/fields/fields.cxx | 3 +-
sw/qa/core/frmedt/frmedt.cxx | 4 +-
sw/qa/core/layout/layout.cxx | 72 ++++---
sw/qa/core/objectpositioning/objectpositioning.cxx | 8 +-
sw/qa/core/text/text.cxx | 42 ++--
sw/qa/core/tox/tox.cxx | 6 +-
sw/qa/core/txtnode/txtnode.cxx | 28 +--
sw/qa/core/undo/undo.cxx | 6 +-
sw/qa/core/unocore/unocore.cxx | 34 ++--
sw/qa/core/view/view.cxx | 3 +-
sw/qa/extras/globalfilter/globalfilter.cxx | 41 ++--
sw/qa/extras/htmlexport/htmlexport.cxx | 41 ++--
sw/qa/extras/htmlimport/htmlimport.cxx | 48 ++---
sw/qa/extras/indexing/IndexingExportTest.cxx | 24 ++-
sw/qa/extras/indexing/SearchResultLocatorTest.cxx | 15 +-
sw/qa/extras/layout/layout.cxx | 107 +++++++----
sw/qa/extras/layout/layout2.cxx | 214 ++++++++++++++-------
sw/qa/extras/mailmerge/mailmerge.cxx | 2 +-
sw/qa/extras/mailmerge/mailmerge2.cxx | 2 +-
sw/qa/extras/odfexport/odfexport.cxx | 2 +-
sw/qa/extras/odfexport/odfexport2.cxx | 4 +-
sw/qa/extras/odfimport/odffeatures.cxx | 6 +-
sw/qa/extras/odfimport/odfimport.cxx | 145 +++++++-------
sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 2 +-
sw/qa/extras/ooxmlexport/ooxmlexport14.cxx | 12 +-
sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 12 +-
sw/qa/extras/ooxmlexport/ooxmlexport17.cxx | 4 +-
sw/qa/extras/ooxmlexport/ooxmlexport18.cxx | 6 +-
sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 4 +-
sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx | 6 +-
sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 184 +++++++++---------
sw/qa/extras/ooxmlimport/ooxmlimport2.cxx | 102 +++++-----
sw/qa/extras/rtfexport/rtfexport.cxx | 2 +-
sw/qa/extras/rtfexport/rtfexport2.cxx | 12 +-
sw/qa/extras/rtfexport/rtfexport3.cxx | 4 +-
sw/qa/extras/rtfexport/rtfexport4.cxx | 12 +-
sw/qa/extras/rtfexport/rtfexport5.cxx | 8 +-
sw/qa/extras/rtfimport/rtfimport.cxx | 188 +++++++++---------
sw/qa/extras/tiledrendering/tiledrendering.cxx | 2 +-
sw/qa/extras/txtimport/txtimport.cxx | 19 +-
sw/qa/extras/uiwriter/uiwriter.cxx | 126 ++++++++----
sw/qa/extras/uiwriter/uiwriter2.cxx | 189 ++++++++++++------
sw/qa/extras/uiwriter/uiwriter3.cxx | 102 ++++++----
sw/qa/extras/uiwriter/uiwriter4.cxx | 143 +++++++++-----
sw/qa/extras/uiwriter/uiwriter5.cxx | 186 ++++++++++++------
sw/qa/extras/uiwriter/uiwriter6.cxx | 125 ++++++++----
sw/qa/extras/uiwriter/uiwriter7.cxx | 126 ++++++++----
sw/qa/extras/uiwriter/uiwriter8.cxx | 100 ++++++----
sw/qa/extras/unowriter/unowriter.cxx | 22 +--
sw/qa/extras/ww8export/ww8export.cxx | 2 +-
sw/qa/extras/ww8export/ww8export3.cxx | 6 +-
sw/qa/extras/ww8import/ww8import.cxx | 28 +--
sw/qa/filter/html/html.cxx | 6 +-
sw/qa/inc/swmodeltestbase.hxx | 22 +--
sw/qa/uibase/dochdl/dochdl.cxx | 6 +-
sw/qa/uibase/docvw/docvw.cxx | 6 +-
sw/qa/uibase/fldui/fldui.cxx | 3 +-
sw/qa/uibase/frmdlg/frmdlg.cxx | 2 +-
sw/qa/uibase/shells/shells.cxx | 19 +-
sw/qa/uibase/uiview/uiview.cxx | 3 +-
sw/qa/uibase/uno/uno.cxx | 5 +-
sw/qa/uibase/wrtsh/wrtsh.cxx | 39 ++--
sw/qa/unit/swmodeltestbase.cxx | 14 +-
70 files changed, 1706 insertions(+), 1118 deletions(-)

Upstream: cgit.freedesktop.org


  • Share