summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-18 12:38:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-19 09:17:06 +0200
commitfd00bd0f69676659bb43bcc85d8ad5fd21e5de4c (patch)
treef9d62fef7f508f430efd72c85b0d0cf6a67da3be /reportdesign
parent8a01fc2f505acc6ed9af5ba18049131225baad30 (diff)
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/FormattedField.cxx1
-rw-r--r--reportdesign/source/core/api/Section.cxx2
-rw-r--r--reportdesign/source/core/inc/FormattedField.hxx1
-rw-r--r--reportdesign/source/core/inc/Section.hxx3
4 files changed, 1 insertions, 6 deletions
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;