sw/qa/extras/layout/layout2.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 9517639bc3189e3ea4dc4d2f7004d4b33d754d47 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Thu Oct 24 23:07:49 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Oct 25 01:19:15 2024 +0200 -Werror,-Wunused-variable ...after 64e8d5d8b9a56f31caff66675180342773f847a0 "sw/qa: use getSwDoc() more" Change-Id: Ib13fe63cac26ff083da5d8c104921c510fa5bb7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175579 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/layout/layout2.cxx b/sw/qa/extras/layout/layout2.cxx index 0743cd980526..187305d9de6c 100644 --- a/sw/qa/extras/layout/layout2.cxx +++ b/sw/qa/extras/layout/layout2.cxx @@ -2577,9 +2577,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter2, testTdf121509) save(u"Office Open XML Text"_ustr); // The second part: check if the reloaded doc has flys inside a fly - uno::Reference<lang::XComponent> xComponent - = loadFromDesktop(maTempFile.GetURL(), u"com.sun.star.text.TextDocument"_ustr); - uno::Reference<text::XTextDocument> xTextDoc(xComponent, uno::UNO_QUERY); + loadFromDesktop(maTempFile.GetURL(), u"com.sun.star.text.TextDocument"_ustr); auto pSecondDoc = getSwDoc(); auto pSecondFormats = pSecondDoc->GetSpzFrameFormats();