From fd00bd0f69676659bb43bcc85d8ad5fd21e5de4c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 May 2017 12:38:23 +0200 Subject: loplugin:unusedfields make it a little smarter in dealing with fields that are smart pointers Change-Id: I44072105170882dc29fb19558f1065cffc7e5f11 Reviewed-on: https://gerrit.libreoffice.org/37751 Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/source/core/api/FormattedField.cxx | 1 - reportdesign/source/core/api/Section.cxx | 2 -- reportdesign/source/core/inc/FormattedField.hxx | 1 - reportdesign/source/core/inc/Section.hxx | 3 +-- 4 files changed, 1 insertion(+), 6 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/core/api/FormattedField.cxx b/reportdesign/source/core/api/FormattedField.cxx index 5af4e883482d..4aa4fbd7edb5 100644 --- a/reportdesign/source/core/api/FormattedField.cxx +++ b/reportdesign/source/core/api/FormattedField.cxx @@ -97,7 +97,6 @@ void SAL_CALL OFormattedField::dispose() FormattedFieldPropertySet::dispose(); cppu::WeakComponentImplHelperBase::dispose(); m_xFormatsSupplier.clear(); - m_xFunction.clear(); } OUString OFormattedField::getImplementationName_Static( ) diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx index 3a19c1c8077f..e875191a7f5a 100644 --- a/reportdesign/source/core/api/Section.cxx +++ b/reportdesign/source/core/api/Section.cxx @@ -110,7 +110,6 @@ OSection::OSection(const uno::Reference< report::XReportDefinition >& xParentDef :SectionBase(m_aMutex) ,SectionPropertySet(context,SectionPropertySet::IMPLEMENTS_PROPERTY_SET,rStrings) ,m_aContainerListeners(m_aMutex) -,m_xContext(context) ,m_xGroup(xParentGroup) ,m_xReportDefinition(xParentDef) ,m_nHeight(3000) @@ -168,7 +167,6 @@ void SAL_CALL OSection::disposing() { lang::EventObject aDisposeEvent( static_cast< ::cppu::OWeakObject* >( this ) ); m_aContainerListeners.disposeAndClear( aDisposeEvent ); - m_xContext.clear(); } OUString SAL_CALL OSection::getImplementationName( ) diff --git a/reportdesign/source/core/inc/FormattedField.hxx b/reportdesign/source/core/inc/FormattedField.hxx index 3e157b7448aa..860ac07ada6a 100644 --- a/reportdesign/source/core/inc/FormattedField.hxx +++ b/reportdesign/source/core/inc/FormattedField.hxx @@ -48,7 +48,6 @@ namespace reportdesign OReportControlModel m_aProps; css::uno::Reference< css::util::XNumberFormatsSupplier > m_xFormatsSupplier; - css::uno::Reference< css::report::XFunction> m_xFunction; ::sal_Int32 m_nFormatKey; private: diff --git a/reportdesign/source/core/inc/Section.hxx b/reportdesign/source/core/inc/Section.hxx index d2430820953c..5a623821d234 100644 --- a/reportdesign/source/core/inc/Section.hxx +++ b/reportdesign/source/core/inc/Section.hxx @@ -53,8 +53,7 @@ namespace reportdesign public SectionBase, public SectionPropertySet { - ::comphelper::OInterfaceContainerHelper2 m_aContainerListeners; - css::uno::Reference< css::uno::XComponentContext > m_xContext; + ::comphelper::OInterfaceContainerHelper2 m_aContainerListeners; css::uno::Reference< css::drawing::XDrawPage > m_xDrawPage; css::uno::Reference< css::drawing::XShapeGrouper > m_xDrawPage_ShapeGrouper; css::uno::Reference< css::form::XFormsSupplier2 > m_xDrawPage_FormSupplier; -- cgit