summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-13 18:57:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-13 22:39:01 +0200
commitca1ecf8bf7bba63f046848840db9d1aee5501fc5 (patch)
treec703da743bc528d81b1a492422d169742a260573 /sw
parentf98f1f1a5f6c9dc8ca32fd9eec8c2bc902f50c77 (diff)
-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 <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter2.cxx3
1 files changed, 0 insertions, 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<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);