sw/qa/extras/uiwriter/uiwriter6.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit ba4762fa14aeca39929d7a6d33217f34f2218e58 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 13 19:06:39 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Apr 13 23:15:20 2023 +0200 -Werror,-Wunused-variable Unused ever since it got introduced in 912336f3c85d9a631fa0ac0f270bab04b204f619 "tdf#154599 sw: fix crash at drag & drop table columns". (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: Ic297b850eab488e22f0477f58c2c62523d58f299 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150373 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/qa/extras/uiwriter/uiwriter6.cxx b/sw/qa/extras/uiwriter/uiwriter6.cxx index 9d2fe18c663f..836dfeb26abc 100644 --- a/sw/qa/extras/uiwriter/uiwriter6.cxx +++ b/sw/qa/extras/uiwriter/uiwriter6.cxx @@ -943,8 +943,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf154599_MovingColumn) (void)&pWrtShell->InsertTable(TableOpt, 4, 3); uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY); - uno::Reference<container::XIndexAccess> xTables(xTablesSupplier->getTextTables(), - uno::UNO_QUERY); uno::Reference<container::XNameAccess> xTableNames = xTablesSupplier->getTextTables(); CPPUNIT_ASSERT(xTableNames->hasByName("Table1")); uno::Reference<text::XTextTable> xTable1(xTableNames->getByName("Table1"), uno::UNO_QUERY);