From c0ce1ec3736be861a2ed58827fadb25269ab0117 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Jun 2017 10:36:23 +0200 Subject: loplugin:unusedfields in sfx2 part1 and fix a memory leak in NotebookbarTabControl where it was not freeing it's m_pListener field Change-Id: Ib9970c9084982d532fa38d1bc3c44180ab2c3c39 Reviewed-on: https://gerrit.libreoffice.org/39036 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/qa/core/filters-test.cxx | 2 +- sw/qa/core/uwriter.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx index 0eff13b14c06..5d072240b6fa 100644 --- a/sw/qa/core/filters-test.cxx +++ b/sw/qa/core/filters-test.cxx @@ -82,7 +82,7 @@ bool SwFiltersTest::filter(const OUString &rFilter, const OUString &rURL, { std::shared_ptr pFilter(new SfxFilter( rFilter, OUString(), nFilterFlags, - nClipboardID, OUString(), 0, OUString(), + nClipboardID, OUString(), OUString(), rUserData, OUString())); const_cast(pFilter.get())->SetVersion(nFilterVersion); diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index e816a91f0b30..4148d93c40f2 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -190,7 +190,7 @@ void SwDocTest::testFileNameFields() std::shared_ptr pFilter(new SfxFilter( "Text", - OUString(), SfxFilterFlags::NONE, SotClipboardFormatId::NONE, OUString(), 0, OUString(), + OUString(), SfxFilterFlags::NONE, SotClipboardFormatId::NONE, OUString(), OUString(), "TEXT", OUString() )); aDstMed.SetFilter(pFilter); -- cgit