diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-11 15:40:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-12 09:56:01 +0200 |
commit | 389da66dfc96d06c407bff156c4ea21e940c5e06 (patch) | |
tree | 2d1ebce6bdb2d952700ed5aaeb808289e9f72a7d /package/source | |
parent | a651dbcfca9e198b5c2561076961504586bc6bea (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 'package/source')
-rw-r--r-- | package/source/xstor/ohierarchyholder.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/switchpersistencestream.cxx | 1 | ||||
-rw-r--r-- | package/source/xstor/xstorage.cxx | 3 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 1 |
4 files changed, 0 insertions, 7 deletions
diff --git a/package/source/xstor/ohierarchyholder.cxx b/package/source/xstor/ohierarchyholder.cxx index 2837d9d2c777..96a079e5ccd5 100644 --- a/package/source/xstor/ohierarchyholder.cxx +++ b/package/source/xstor/ohierarchyholder.cxx @@ -170,8 +170,6 @@ void OHierarchyElement_Impl::RemoveStreamHierarchically( OStringList_Impl& aList OUString aNextName = *(aListPath.begin()); aListPath.erase( aListPath.begin() ); - uno::Reference< embed::XExtendedStorageStream > xResult; - uno::Reference< embed::XStorage > xOwnStor; xOwnStor = m_xOwnStorage.is() ? m_xOwnStorage diff --git a/package/source/xstor/switchpersistencestream.cxx b/package/source/xstor/switchpersistencestream.cxx index 664f455e5cbb..017d3a4cb635 100644 --- a/package/source/xstor/switchpersistencestream.cxx +++ b/package/source/xstor/switchpersistencestream.cxx @@ -120,7 +120,6 @@ void SwitchablePersistenceStream::SwitchPersistenceTo( const uno::Reference< io: void SwitchablePersistenceStream::SwitchPersistenceTo( const uno::Reference< io::XInputStream >& xInputStream ) { - uno::Reference< io::XStream > xNewStream; uno::Reference< io::XTruncate > xNewTruncate; uno::Reference< io::XSeekable > xNewSeekable( xInputStream, uno::UNO_QUERY_THROW ); uno::Reference< io::XOutputStream > xNewOutStream; diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 1de098f426a0..db5ddcd8ba5a 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -1102,7 +1102,6 @@ void OStorage_Impl::Commit() { // this is the case when xNewPackageFolder refers to m_xPackageFolder // in case the name was changed and it is not a changed storage - rename the element - uno::Reference< container::XNamed > xNamed; uno::Any aPackageElement = xNewPackageFolder->getByName( (*pElementIter)->m_aOriginalName ); xNewPackageFolder->removeByName( (*pElementIter)->m_aOriginalName ); xNewPackageFolder->insertByName( (*pElementIter)->m_aName, aPackageElement ); @@ -1130,7 +1129,6 @@ void OStorage_Impl::Commit() if ( (*pElementIter)->m_bIsInserted ) { (*pElementIter)->m_aOriginalName = (*pElementIter)->m_aName; - uno::Reference< lang::XUnoTunnel > xNewElement; if ( (*pElementIter)->m_bIsStorage ) { @@ -2644,7 +2642,6 @@ void SAL_CALL OStorage::copyStorageElementLastCommitTo( if (!pElement->m_xStorage) m_pImpl->OpenSubStorage( pElement, nStorageMode ); - uno::Reference< embed::XStorage > xResult; if (pElement->m_xStorage) { // the existence of m_pAntiImpl of the child is not interesting, diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 17d5adf52d81..90272bbee62b 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -550,7 +550,6 @@ void ZipPackage::getZipFileContents() void SAL_CALL ZipPackage::initialize( const uno::Sequence< Any >& aArguments ) { - uno::Reference< XProgressHandler > xProgressHandler; beans::NamedValue aNamedValue; if ( aArguments.getLength() ) |