summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-07 08:49:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-07 10:03:19 +0200
commit97ac4de1e3a41a346e19aa3ca3a4e05594073ae7 (patch)
tree70e4da84a1eb72c0b4b942e65e7af2e426d0f275 /reportdesign
parent56d6e458a3faca2479588359651b7601db578c92 (diff)
loplugin:unusedvariableplus in reportdesign
Change-Id: Ie8568f524a1f804e07890ee7828a81f1752fcfd0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91793 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index 8f493a9c8532..ddd4a6a28dad 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -423,8 +423,6 @@ bool ORptFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
if ( !sFileName.isEmpty() )
{
- uno::Reference<XComponent> xCom = GetModel();
-
tools::SvRef<SfxMedium> pMedium = new SfxMedium(
sFileName, ( StreamMode::READ | StreamMode::NOCREATE ) );
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 689f0a0c67f3..7482b51925b7 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -126,9 +126,9 @@ void OReportSection::dispose()
m_pFunc.reset();
{
- ::std::unique_ptr<OSectionView> aTemp( m_pView);
if ( m_pView )
m_pView->EndListening( *m_pModel );
+ delete m_pView;
m_pView = nullptr;
}
m_pParent.clear();