sw/qa/extras/odfexport/odfexport.cxx | 3 --- sw/qa/extras/ooxmlexport/ooxmlexport8.cxx | 1 - 2 files changed, 4 deletions(-)
New commits: commit 99b33f387a8703a2a37a45554309ca6b8906a296 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 13 17:42:10 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Apr 14 08:12:23 2023 +0200 -Werror,-Wunused-variable Apparently left behind by 36e62098c8c541c4a3fb63eced591cf29ac56e4a "CppUnittest: sw: simplify code. use getShapes and getShape". (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: I17adb18fc8a054dd2f2c26181c5d1ab4273c5411 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150365 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx index dbcd48aca0b6..5bfc8fa8be57 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx @@ -153,7 +153,6 @@ graphic = image(0).Graphic xray graphic.Size xray image.AnchorType */ - uno::Reference<text::XTextDocument> textDocument(mxComponent, uno::UNO_QUERY); CPPUNIT_ASSERT_EQUAL(1, getShapes()); uno::Reference<drawing::XShapes> shapes(getShape(1), uno::UNO_QUERY); uno::Reference<drawing::XShape> image; commit c4a8458f49c9d6816c9a625cc62edd67a6b7af54 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 13 18:26:01 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Apr 14 08:12:14 2023 +0200 -Werror,-Wunused-variable Unused ever since it got introduced in ea358f5d5b04a2a8e11a73d35643cd0afc5cb63b "CharBrd 8.2: Tests for UNO API and ODF filter". (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: Id30adc7bb05855316f59e7b0cba9c6e401dc9fcc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150367 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 50a3bbec5f76..7298a3f314ac 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -1090,9 +1090,6 @@ DECLARE_ODFEXPORT_TEST(testCharacterBorder, "charborder.odt") uno::Reference < container::XEnumeration > xAutoStylesEnum( xAutoStyleFamily->createEnumeration() ); CPPUNIT_ASSERT_EQUAL(true, static_cast<bool>(xAutoStylesEnum->hasMoreElements())); - // First paragraph autostyle - uno::Reference < beans::XPropertySet > xPSet( xAutoStylesEnum->nextElement(), uno::UNO_QUERY ); - // Top border CPPUNIT_ASSERT_BORDER_EQUAL(aFirstParCharTopBorder, getProperty<table::BorderLine2>(xSet,"CharTopBorder")); CPPUNIT_ASSERT_EQUAL(aFirstParCharTopPadding, getProperty<sal_Int32>(xSet,"CharTopBorderDistance"));