sw/qa/extras/uiwriter/uiwriter2.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 5e86a3487f1ec5dd1c74b6b9ebb6a04550d39c04
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Apr 13 18:57:59 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Apr 13 22:47:01 2023 +0200

    -Werror,-Wunused-variable
    
    Looks like it got added by mistake in 
8a776fecda43db0bebf5f0028adacce8c2c6afd2
    "sw_uiwriter2: Unify code and use createSwDoc everywhere".
    
    (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: I441dceeea14152a2c84c46ed2c349cf320e3d439
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150371
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/qa/extras/uiwriter/uiwriter2.cxx 
b/sw/qa/extras/uiwriter/uiwriter2.cxx
index b08cbad52908..9a38e572b8b5 100644
--- a/sw/qa/extras/uiwriter/uiwriter2.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter2.cxx
@@ -3096,7 +3096,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testTdf139120)
         dispatchCommand(mxComponent, ".uno:Delete", {});
     }
 
-    uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
     CPPUNIT_ASSERT_EQUAL(OUString("Lorem ipsum sit amet."), 
pTextDoc->getText()->getString());
 
     for (int i = 0; i < 6; ++i)

Reply via email to