vcl/qa/cppunit/pdfexport/pdfexport.cxx |    2 --
 xmloff/source/text/txtparae.cxx        |    1 -
 2 files changed, 3 deletions(-)

New commits:
commit 396f3fd0ab1cdabf0b4800b5c45a418534f83e5c
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Apr 12 23:05:00 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Apr 13 07:48:07 2023 +0200

    -Werror,-Wunused-variable
    
    Unused ever since the two variables got introduced in
    919a4ef592b6026a7533a93682f39118fef29ce8 "tdf#105461 PDF export of editeng 
fill
    color: restrict to logic map modes" and 
fddd956c0cf3b2c22a152bbb30554def1336b466
    "tdf#96892 vcl: add unit test for misplaced soft-hyphen ...", 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: I538a8cf410355ca4b5230f89947587b58d67e205
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150304
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx 
b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index 65e1a06a4b99..a11e2a820506 100644
--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
@@ -212,7 +212,6 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf107868)
 
     // Import the bugdoc and print to PDF.
     loadFromURL(u"tdf107868.odt");
-    uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
     uno::Reference<view::XPrintable> xPrintable(mxComponent, uno::UNO_QUERY);
     CPPUNIT_ASSERT(xPrintable.is());
     uno::Sequence<beans::PropertyValue> 
aOptions(comphelper::InitPropertySequence(
@@ -452,7 +451,6 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testSofthyphenPos)
 
     // Import the bugdoc and print to PDF.
     loadFromURL(u"softhyphen_pdf.odt");
-    uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
     uno::Reference<view::XPrintable> xPrintable(mxComponent, uno::UNO_QUERY);
     CPPUNIT_ASSERT(xPrintable.is());
     uno::Sequence<beans::PropertyValue> 
aOptions(comphelper::InitPropertySequence(
commit 8a4fdf8a18fac2829b5a95ce9e3f4323f5eec9b4
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Apr 12 23:00:48 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Apr 13 07:47:58 2023 +0200

    -Werror,-Wunused-variable
    
    Unused ever since it got introduced in 
463178fef5c22f1a04d10e54491852d56e2038b0
    "xmloff, sw: ODF import/export of fieldmark separator".
    
    (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: I8d665d12f923725773f6a55f7edee70ebc72e3ba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150303
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index f9f070a1d9b2..5ae853b239ab 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2443,7 +2443,6 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
             }
             else if (sType == gsTextFieldSep)
             {
-                Reference<text::XFormField> const 
xFormField(xPropSet->getPropertyValue(gsBookmark), UNO_QUERY);
                 if (!bAutoStyles)
                 {
                     if (GetExport().getSaneDefaultVersion() & 
SvtSaveOptions::ODFSVER_EXTENDED)

Reply via email to