summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-11 15:40:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-12 09:56:01 +0200
commit389da66dfc96d06c407bff156c4ea21e940c5e06 (patch)
tree2d1ebce6bdb2d952700ed5aaeb808289e9f72a7d /extensions
parenta651dbcfca9e198b5c2561076961504586bc6bea (diff)
remove unused uno::Reference vars
found by temporarily marking Reference as SAL_WARN_UNUSED. Change-Id: I18809b62654467f890016adcc92576980ced393b Reviewed-on: https://gerrit.libreoffice.org/37511 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/datman.cxx2
-rw-r--r--extensions/source/bibliography/framectr.cxx3
-rw-r--r--extensions/source/dbpilots/controlwizard.cxx3
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx3
4 files changed, 1 insertions, 10 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index aaaf92980e76..a6c5deba6924 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -110,7 +110,6 @@ Reference< XConnection > getConnection(const OUString& _rURL)
if (xDataSource.is())
{
// need user/pwd for this
- Reference< XPropertySet > xDataSourceProps(xDataSource, UNO_QUERY);
Reference< XCompletedConnection > xComplConn(xDataSource, UNO_QUERY);
try
{
@@ -1294,7 +1293,6 @@ Reference< awt::XControlModel > BibDataManager::loadControlModel(
{
aElement = xFields->getByName(rName);
aElement >>= xField;
- Reference< XPropertySetInfo > xInfo = xField.is() ? xField->getPropertySetInfo() : Reference< XPropertySetInfo > ();
const OUString sType("Type");
sal_Int32 nFormatKey = 0;
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 61bbcb7794eb..51d661e37731 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -720,13 +720,10 @@ void BibFrameController_Impl::addStatusListener(
}
}
}
- uno::Reference< datatransfer::XTransferable > xContents = xClip->getContents( );
}
}
else if(aURL.Path == "Bib/DeleteRecord")
{
- Reference< css::sdbc::XResultSet > xCursor(m_xDatMan->getForm(), UNO_QUERY);
- Reference< XResultSetUpdate > xUpdateCursor(xCursor, UNO_QUERY);
Reference< beans::XPropertySet > xSet(m_xDatMan->getForm(), UNO_QUERY);
bool bIsNew = ::comphelper::getBOOL(xSet->getPropertyValue("IsNew"));
if(!bIsNew)
diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx
index eb42d78be697..68bc88dae26a 100644
--- a/extensions/source/dbpilots/controlwizard.cxx
+++ b/extensions/source/dbpilots/controlwizard.cxx
@@ -438,8 +438,7 @@ namespace dbp
{
// for this, use a AutoDisposer (so the conn is cleaned up when the form dies or get's another connection)
Reference< XRowSet > xFormRowSet( m_aContext.xForm, UNO_QUERY );
- OAutoConnectionDisposer* pAutoDispose = new OAutoConnectionDisposer( xFormRowSet, _rxConn );
- Reference< XPropertyChangeListener > xEnsureDelete( pAutoDispose );
+ rtl::Reference<OAutoConnectionDisposer> pAutoDispose = new OAutoConnectionDisposer( xFormRowSet, _rxConn );
}
else
{
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 1918dcd0f8ed..71fb21a05f43 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -2057,7 +2057,6 @@ namespace pcr
}
else if ( eDialogControl == m_eComponentClass )
{
- Reference< XControlModel > xControlModel( m_xComponent, UNO_QUERY );
Reference< XServiceInfo > xServiceInfo( m_xComponent, UNO_QUERY );
if ( xServiceInfo.is() )
{
@@ -2313,8 +2312,6 @@ namespace pcr
{
WaitCursor aWaitCursor( impl_getDefaultDialogParent_nothrow() );
- Reference< XPreparedStatement > xStatement;
-
// get the form of the control we're inspecting
Reference< XPropertySet > xFormSet( impl_getRowSet_throw(), UNO_QUERY );
if ( !xFormSet.is() )