sw/qa/extras/ww8import/ww8import.cxx | 1 - 1 file changed, 1 deletion(-)
New commits: commit c4b561d64ef64a1cd578ea7a6e24bd78a3bce36e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 13 17:33:13 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Apr 13 22:37:52 2023 +0200 -Werror,-Wunused-variable Unused ever since it got introduced in 84fefd7c295fc05499ca222dff50c2fe4e0fb27e "tdf#120145 ww8import: ignoreCols if section is inserted". (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: Ifdf83006d244abe92025fed528f9b1546142ce82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150363 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx index f5f679da1f04..82b4c74253dd 100644 --- a/sw/qa/extras/ww8import/ww8import.cxx +++ b/sw/qa/extras/ww8import/ww8import.cxx @@ -53,7 +53,6 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableSectionMargins) CPPUNIT_ASSERT(xTextSection.is()); uno::Reference<text::XTextColumns> xTextColumns = getProperty< uno::Reference<text::XTextColumns> >(xTextSection, "TextColumns"); OUString pageStyleName = getProperty<OUString>(getParagraph(2), "PageStyleName"); - uno::Reference<style::XStyle> pageStyle( getStyles("PageStyles")->getByName(pageStyleName), uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xPageStyle(getStyles("PageStyles")->getByName(pageStyleName), uno::UNO_QUERY); uno::Reference<text::XTextColumns> xPageColumns = getProperty< uno::Reference<text::XTextColumns> >(xPageStyle, "TextColumns");