diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-24 17:13:27 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-25 09:23:21 +0200 |
commit | fb41273bf460234a5636a37765bdba90860147d4 (patch) | |
tree | 27909e89d34cf1aadb753f61e67322348579ee3f /sw/qa/extras/odfexport | |
parent | 5211168bb020c53c8f870f3c6f391777df8ae363 (diff) |
sw/qa: use getSwDocShell() when possible
Change-Id: Ia2e3dad4e62fb084c3a88564deb137cbcc7728b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175573
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r-- | sw/qa/extras/odfexport/odfexport2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/qa/extras/odfexport/odfexport2.cxx b/sw/qa/extras/odfexport/odfexport2.cxx index e365cf32ab08..c32c62ea4163 100644 --- a/sw/qa/extras/odfexport/odfexport2.cxx +++ b/sw/qa/extras/odfexport/odfexport2.cxx @@ -1730,8 +1730,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf122452) // FIXME: Error: element "text:insertion" was found where no element may occur skipValidation(); loadAndReload("tdf122452.doc"); - SwDoc* pDoc = getSwDoc(); - SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); + SwWrtShell* pWrtShell = getSwDocShell()->GetWrtShell(); // Without the fix in place this fails with: // Expected: 1 |