sw/qa/extras/uiwriter/uiwriter3.cxx |    2 --
 sw/qa/filter/ww8/ww8.cxx            |    2 --
 2 files changed, 4 deletions(-)

New commits:
commit 81b8888b8184d28e0f6fe67d943f4cdda2e42794
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Apr 13 16:35:42 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Apr 14 08:12:03 2023 +0200

    -Werror,-Wunused-variable
    
    Unused ever since the two variables got introduced in
    a825e23a2980fcb3d970834c4ce1f8403fb93054 "DOCX export: fix not-well-formed 
XML
    when hyperlink end is a textbox anchor" and
    87e82f80e87bb4a216ea83383864d494f3e92eea "docx: export symbol characters
    correctly", respectively.
    
    (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: I89b8324633d598b06c8aa206747f9213d4634cac
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150361
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/qa/filter/ww8/ww8.cxx b/sw/qa/filter/ww8/ww8.cxx
index 8eac94ae36d0..e5121d5612d6 100644
--- a/sw/qa/filter/ww8/ww8.cxx
+++ b/sw/qa/filter/ww8/ww8.cxx
@@ -119,7 +119,6 @@ CPPUNIT_TEST_FIXTURE(Test, testDocxHyperlinkShape)
     // Given a document with a hyperlink at char positions 0 -> 6 and a shape 
with text anchored at
     // char position 6:
     createSwDoc();
-    uno::Reference<lang::XMultiServiceFactory> xMSF(mxComponent, 
uno::UNO_QUERY);
     uno::Reference<text::XTextDocument> xTextDocument(mxComponent, 
uno::UNO_QUERY);
     uno::Reference<text::XText> xText = xTextDocument->getText();
     uno::Reference<text::XTextCursor> xCursor = xText->createTextCursor();
@@ -169,7 +168,6 @@ CPPUNIT_TEST_FIXTURE(Test, testDocxSymbolFontExport)
 {
     // Create document with symbol character and font Wingdings
     mxComponent = loadFromDesktop("private:factory/swriter");
-    uno::Reference<lang::XMultiServiceFactory> xMSF(mxComponent, 
uno::UNO_QUERY);
     uno::Reference<text::XTextDocument> xTextDocument(mxComponent, 
uno::UNO_QUERY);
     uno::Reference<text::XText> xText = xTextDocument->getText();
     uno::Reference<text::XTextCursor> xCursor = xText->createTextCursor();
commit 2c13cb94be4b601e55712512d52d8cc975ca2974
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Apr 13 18:48:43 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Apr 14 08:11:54 2023 +0200

    -Werror,-Wunused-variable
    
    Unused ever since it got introduced in 
cd62fa66a7b57c1cdcbf7cdbdf155edf8e40c9fc
    "tdf#139737 sw_fieldmarkhide: add unit test".
    
    (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: If9281585d081c58bd1a32159a403989af7fec621
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150369
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx 
b/sw/qa/extras/uiwriter/uiwriter3.cxx
index a282ae7bcbb4..06407a628ed8 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -1032,8 +1032,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf139737)
 {
     createSwDoc("tdf139737.fodt");
 
-    uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
-
     dispatchCommand(mxComponent, ".uno:SelectAll", {});
 
     dispatchCommand(mxComponent, ".uno:Copy", {});

Reply via email to