diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-11 14:18:18 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-11 16:26:05 +0100 |
commit | 4a6b56a5a1cd8756ff6d0335554fe78bf9988c27 (patch) | |
tree | dfc8d944064120d6a1736ec8efc2093517276064 /sw/qa/uibase/uiview/uiview.cxx | |
parent | 69efabc0ce798b86b6971f5a9adca11e98bec4d1 (diff) |
SwModelTestBase: use createSwDoc everywhere
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
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, 2 insertions, 1 deletions
diff --git a/sw/qa/uibase/uiview/uiview.cxx b/sw/qa/uibase/uiview/uiview.cxx index 4dfae7772b26..348574b13f85 100644 --- a/sw/qa/uibase/uiview/uiview.cxx +++ b/sw/qa/uibase/uiview/uiview.cxx @@ -237,7 +237,8 @@ CPPUNIT_TEST_FIXTURE(SwUibaseUiviewTest, testSwitchBetweenImages) { // Given a document with 2 images, and an interceptor catching an UNO command that specific to // the current selection: - SwDoc* pDoc = createSwDoc(); + createSwDoc(); + SwDoc* pDoc = getSwDoc(); SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); uno::Reference<lang::XMultiServiceFactory> xMSF(mxComponent, uno::UNO_QUERY); uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY); |