sd/qa/unit/import-tests2.cxx | 3 --- sw/qa/extras/uiwriter/uiwriter2.cxx | 3 --- 2 files changed, 6 deletions(-)
New commits: commit ca1ecf8bf7bba63f046848840db9d1aee5501fc5 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 13 18:57:34 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Apr 13 22:39:01 2023 +0200 -Werror,-Wunused-variable Unused ever since the two variables got introduced in 22a77cb83a3769a8b43d80565282988a74214866 "tdf#134436 sw: fix SwUndoDelete::RedoImpl() with section at end..." (Found with an experimental Clang build supporting __attribute__((warn_unused)) on individual ctors rather than just whole class types, and the corresponding css::uno::Reference ctor marked accordingly.) Change-Id: I53777c67da8e384d8f1ed2cd2840ce0c6abeeb5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150370 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/qa/extras/uiwriter/uiwriter2.cxx b/sw/qa/extras/uiwriter/uiwriter2.cxx index c4e8abe62c8f..b08cbad52908 100644 --- a/sw/qa/extras/uiwriter/uiwriter2.cxx +++ b/sw/qa/extras/uiwriter/uiwriter2.cxx @@ -475,9 +475,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testTdf134436) SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); CPPUNIT_ASSERT(pWrtShell); - uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY); - uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier( - xModel->getCurrentController(), uno::UNO_QUERY); uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY); uno::Reference<container::XIndexAccess> xTables(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY); commit f98f1f1a5f6c9dc8ca32fd9eec8c2bc902f50c77 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 13 15:57:22 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Apr 13 22:38:46 2023 +0200 -Werror,-Wunused-variable Unused ever since the three variables got introduced in 504d61697bac45236da27fba23c7189daf8c171e "tdf#149206: sd_import_tests2: Add unittest", 59cf9a433e1ea74ccdb1abe080511353a6c0af08 "tdf#149785: sd_import_tests2: Add unittest", and 93b07a377b93875b28464546f1292e4aa5f9e17d "tdf#149985: sd_import_tests2: Add unittest", respectively. (Found with an experimental Clang build supporting __attribute__((warn_unused)) on individual ctors rather than just whole class types, and the corresponding css::uno::Reference ctor marked accordingly.) Change-Id: I0f5520255cb400eee7a860212b42190c66cdb239 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150359 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sd/qa/unit/import-tests2.cxx b/sd/qa/unit/import-tests2.cxx index dd290907ee79..55ab505fc603 100644 --- a/sd/qa/unit/import-tests2.cxx +++ b/sd/qa/unit/import-tests2.cxx @@ -1275,7 +1275,6 @@ CPPUNIT_TEST_FIXTURE(SdImportTest2, testTdf149206) { // Check that the image is cropped createSdImpressDoc("pptx/tdf149206.pptx"); - uno::Reference<drawing::XDrawPagesSupplier> xDoc(mxComponent, uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xPropertySet(getShapeFromPage(/*nShape=*/0, /*nPage=*/0)); text::GraphicCrop aCrop; @@ -1295,7 +1294,6 @@ CPPUNIT_TEST_FIXTURE(SdImportTest2, testTdf149785) { // Without the fix in place, this test would have failed to load the file createSdImpressDoc("pptx/tdf149785.pptx"); - uno::Reference<drawing::XDrawPagesSupplier> xDoc(mxComponent, uno::UNO_QUERY); const SdrPage* pPage = GetPage(1); CPPUNIT_ASSERT_EQUAL(size_t(1), pPage->GetObjCount()); @@ -1305,7 +1303,6 @@ CPPUNIT_TEST_FIXTURE(SdImportTest2, testTdf149985) { // Without the fix in place, this test would have failed to load the file createSdImpressDoc("pptx/tdf149985.pptx"); - uno::Reference<drawing::XDrawPagesSupplier> xDoc(mxComponent, uno::UNO_QUERY); const SdrPage* pPage = GetPage(1); CPPUNIT_ASSERT_EQUAL(size_t(1), pPage->GetObjCount());