summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-26 13:26:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-28 07:19:46 +0100
commit65f007c629e5a7b2710e21e3f26164b433576e27 (patch)
treed064b7c23ffe3948443fe1a4499a56308e01f97a /extensions
parent1446e097e76669c0d7749ec0f8918606d3cc4c28 (diff)
remove some unused local vars
found by my new aggressive unused var plugin. these are unused return values from function calls Change-Id: I3359c583f535828f192cb833762dfedc008d82f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87439 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibload.cxx3
-rw-r--r--extensions/source/dbpilots/controlwizard.cxx2
-rw-r--r--extensions/source/propctrlr/eventhandler.cxx2
-rw-r--r--extensions/source/propctrlr/genericpropertyhandler.cxx2
4 files changed, 4 insertions, 5 deletions
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index 95dc8bc962ba..6098e693c0c1 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -262,7 +262,7 @@ void BibliographyLoader::loadView(const Reference< XFrame > & rFrame,
aBibDesc.sDataSource = aSources.getConstArray()[0];
}
- Reference< XForm > xForm = m_xDatMan->createDatabaseForm( aBibDesc );
+ m_xDatMan->createDatabaseForm( aBibDesc );
Reference< awt::XWindow > aWindow = rFrame->getContainerWindow();
VCLXWindow* pParentComponent = comphelper::getUnoTunnelImplementation<VCLXWindow>(aWindow);
@@ -561,7 +561,6 @@ Type BibliographyLoader::getElementType()
sal_Bool BibliographyLoader::hasElements()
{
- Reference< XResultSet > xCursor = GetDataCursor();
Reference< XNameAccess > xColumns = GetDataColumns();
return xColumns.is() && xColumns->getElementNames().hasElements();
}
diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx
index 045f2924c8f7..aae97ab5a8d7 100644
--- a/extensions/source/dbpilots/controlwizard.cxx
+++ b/extensions/source/dbpilots/controlwizard.cxx
@@ -408,7 +408,7 @@ namespace dbp
{
// for this, use an AutoDisposer (so the conn is cleaned up when the form dies or gets another connection)
Reference< XRowSet > xFormRowSet( m_aContext.xForm, UNO_QUERY );
- rtl::Reference<OAutoConnectionDisposer> pAutoDispose = new OAutoConnectionDisposer( xFormRowSet, _rxConn );
+ new OAutoConnectionDisposer( xFormRowSet, _rxConn );
}
else
{
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx
index c25dffa415a3..a62487ecff4c 100644
--- a/extensions/source/propctrlr/eventhandler.cxx
+++ b/extensions/source/propctrlr/eventhandler.cxx
@@ -762,7 +762,7 @@ namespace pcr
LineDescriptor aDescriptor;
aDescriptor.Control = _rxControlFactory->createPropertyControl( PropertyControlType::TextField, true );
- Reference< XEventListener > xControlExtender = new PropertyControlExtender( aDescriptor.Control );
+ new PropertyControlExtender( aDescriptor.Control );
const EventDescription& rEvent = impl_getEventForName_throw( _rPropertyName );
aDescriptor.DisplayName = rEvent.sDisplayName;
diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx
index 2b04b7567bd2..7768a74caa69 100644
--- a/extensions/source/propctrlr/genericpropertyhandler.cxx
+++ b/extensions/source/propctrlr/genericpropertyhandler.cxx
@@ -584,7 +584,7 @@ namespace pcr
PropertyControlType::HyperlinkField, PropertyHandlerHelper::requiresReadOnlyControl( pos->second.Attributes ) );
Reference< XHyperlinkControl > xControl( aDescriptor.Control, UNO_QUERY_THROW );
- Reference< XActionListener > xEnsureDelete( new UrlClickHandler( m_xContext, xControl ) );
+ new UrlClickHandler( m_xContext, xControl );
}
}
break;