sw/qa/extras/uiwriter/uiwriter6.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 8978d12cbc475fa4c94a9a6b65d2e3f7219eb227
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon Apr 17 08:14:33 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Apr 17 15:03:43 2023 +0200

    -Werror,-Wunused-variable
    
    Unused ever since it got introduced in 
9a62e50d72bdcc786df4ea6094b349d1b3215b56
    "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 <sberg...@redhat.com>

diff --git a/sw/qa/extras/uiwriter/uiwriter6.cxx 
b/sw/qa/extras/uiwriter/uiwriter6.cxx
index 836dfeb26abc..7e2ddb31d1c6 100644
--- a/sw/qa/extras/uiwriter/uiwriter6.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter6.cxx
@@ -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);

Reply via email to