-Werror,-Wunused-variable

Unused ever since it got introduced in 9a62e50d72
"tdf#154771 sw: fix drag & drop moving of 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: Ibd17de455af63211699e493de991f3a01e40f16f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150466
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2023-04-17 15:03:43 +02:00
parent d88b2ec74c
commit 8978d12cbc
-2
View File
@@ -992,8 +992,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf154771_MovingMultipleColumns)
(void)&pWrtShell->InsertTable(TableOpt, 5, 4);
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);