summaryrefslogtreecommitdiff
path: root/basic
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 /basic
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 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx3
-rw-r--r--basic/source/runtime/methods.cxx1
-rw-r--r--basic/source/uno/namecont.cxx6
3 files changed, 2 insertions, 8 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index c0efa32baa99..43573250de0c 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -2285,8 +2285,6 @@ SbUnoObject::SbUnoObject( const OUString& aName_, const Any& aUnoObj_ )
, bNeedIntrospection( true )
, bNativeCOMObject( false )
{
- static Reference< XIntrospection > xIntrospection;
-
// beat out again the default properties of Sbx
Remove( "Name", SbxClassType::DontCare );
Remove( "Parent", SbxClassType::DontCare );
@@ -3362,7 +3360,6 @@ SbxVariable* SbUnoClass::Find( const OUString& rName, SbxClassType )
{
// Is it a field(?)
Reference< XIdlField > xField = m_xClass->getField( rName );
- Reference< XIdlClass > xClass;
if( xField.is() )
{
try
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index f0166383c14e..3fd6e025a7c9 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -3927,7 +3927,6 @@ OUString getObjectTypeName( SbxVariable* pVar )
if ( xServInfo.is() )
{
// is this a VBA object ?
- uno::Reference< ooo::vba::XHelperInterface > xVBA( aObj, uno::UNO_QUERY );
Sequence< OUString > sServices = xServInfo->getSupportedServiceNames();
if ( sServices.getLength() )
{
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 3e5af6eed373..4aab96ec6d95 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1058,8 +1058,7 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
}
if( mxSFI->isFolder( aPrevFolder ) )
{
- SfxLibraryContainer* pPrevCont = createInstanceImpl();
- Reference< XInterface > xRef = static_cast< XInterface* >( static_cast< OWeakObject* >(pPrevCont) );
+ rtl::Reference<SfxLibraryContainer> pPrevCont = createInstanceImpl();
// Rename previous basic folder to make storage URLs correct during initialisation
OUString aFolderUserBasic = aUserBasicInetObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
@@ -1266,7 +1265,7 @@ void SfxLibraryContainer::implScanExtensions()
// Create link
const bool bReadOnly = false;
- Reference< XNameAccess > xLib = createLibraryLink( aLibName, aIndexFileURL, bReadOnly );
+ createLibraryLink( aLibName, aIndexFileURL, bReadOnly );
}
#else
(void) this;
@@ -3261,7 +3260,6 @@ ScriptSubPackageIterator::ScriptSubPackageIterator( Reference< deployment::XPack
, m_nSubPkgCount( 0 )
, m_iNextSubPkg( 0 )
{
- Reference< deployment::XPackage > xScriptPackage;
if( !m_xMainPackage.is() )
{
return;