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

New commits:
commit 6888d414fd298a6d3da69e189398b38bbd1db7c0
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Apr 13 19:03:34 2023 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Thu Apr 13 23:14:54 2023 +0200

    -Werror,-Wunused-variable
    
    Unused ever since the two variables got introduced in
    19b0171bbb6c2bcdab998b74a212dc68b1884e84 "tdf#108494 fix regression".
    
    (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: Idb06de376cf5bed273f0ebb46c00b9f6f675b223
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150372
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx 
b/sw/qa/extras/uiwriter/uiwriter.cxx
index a3c0cc1ad5a6..dbfbf3eb8535 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -854,8 +854,6 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testWatermarkPosition)
         uno::Reference<frame::XModel> xModel = 
pDoc->GetDocShell()->GetBaseModel();
         uno::Reference<style::XStyleFamiliesSupplier> 
xStyleFamiliesSupplier(xModel, uno::UNO_QUERY);
         uno::Reference<container::XNameAccess> xStyleFamilies = 
xStyleFamiliesSupplier->getStyleFamilies();
-        uno::Reference<container::XNameAccess> 
xStyleFamily(xStyleFamilies->getByName("PageStyles"), uno::UNO_QUERY);
-        uno::Reference<beans::XPropertySet> 
xPageStyle(xStyleFamily->getByName("Default Page Style"), uno::UNO_QUERY);
 
         // 1. Add additional page breaks
         for (int j = 0; j < aAdditionalPagesCount[i]; ++j)

Reply via email to