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/uibase/uiview/uiview.cxx | |
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/uibase/uiview/uiview.cxx')
-rw-r--r-- | sw/qa/uibase/uiview/uiview.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/qa/uibase/uiview/uiview.cxx b/sw/qa/uibase/uiview/uiview.cxx index 057287d97fcf..46b69a920feb 100644 --- a/sw/qa/uibase/uiview/uiview.cxx +++ b/sw/qa/uibase/uiview/uiview.cxx @@ -236,8 +236,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseUiviewTest, testSwitchBetweenImages) // Given a document with 2 images, and an interceptor catching an UNO command that specific to // the current selection: createSwDoc(); - SwDoc* pDoc = getSwDoc(); - SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); + SwWrtShell* pWrtShell = getSwDocShell()->GetWrtShell(); uno::Reference<lang::XMultiServiceFactory> xMSF(mxComponent, uno::UNO_QUERY); uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY); uno::Reference<text::XText> xText = xTextDocument->getText(); |