From ca1ecf8bf7bba63f046848840db9d1aee5501fc5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 13 Apr 2023 18:57:34 +0200 Subject: -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 --- sw/qa/extras/uiwriter/uiwriter2.cxx | 3 --- 1 file changed, 3 deletions(-) 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 xModel(mxComponent, uno::UNO_QUERY); - uno::Reference xTextViewCursorSupplier( - xModel->getCurrentController(), uno::UNO_QUERY); uno::Reference xTextTablesSupplier(mxComponent, uno::UNO_QUERY); uno::Reference xTables(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY); -- cgit