summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx4
-rw-r--r--sfx2/source/appl/shutdownicon.cxx1
-rw-r--r--sfx2/source/control/bindings.cxx3
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx1
-rw-r--r--sfx2/source/doc/docfile.cxx1
-rw-r--r--sfx2/source/doc/doctempl.cxx1
-rw-r--r--sfx2/source/doc/objcont.cxx1
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx3
8 files changed, 1 insertions, 14 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 4a67b06ef6ff..c3acd7f126b6 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2004,7 +2004,6 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox()
sCurrentFactory = SfxHelp::GetCurrentModuleIdentifier();
Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
- Reference< XInterface > xConfig;
OUString sPath( PATH_OFFICE_FACTORIES );
sPath += sCurrentFactory;
OUString sKey( KEY_HELP_ON_OPEN );
@@ -2394,8 +2393,7 @@ bool SfxHelpTextWindow_Impl::PreNotify( NotifyEvent& rNEvt )
Reference < XDispatch > xDisp = xFrame->queryDispatch( aURL, OUString(), 0 );
if(xDisp.is())
{
- HelpStatusListener_Impl* pStateListener;
- Reference<XStatusListener>xStateListener = pStateListener =
+ rtl::Reference<HelpStatusListener_Impl> pStateListener =
new HelpStatusListener_Impl(xDisp, aURL );
FeatureStateEvent rEvent = pStateListener->GetStateEvent();
bool bCheck = false;
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index f6a537ec72bb..c7cc437748fc 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -365,7 +365,6 @@ IMPL_LINK( ShutdownIcon, DialogClosedHdl_Impl, FileDialogHelper*, /*unused*/, vo
{
css::uno::Reference < XFilePickerControlAccess > xPickerControls ( xPicker, UNO_QUERY );
- css::uno::Reference < XFilterManager > xFilterManager ( xPicker, UNO_QUERY );
Sequence< OUString > sFiles = xPicker->getSelectedFiles();
int nFiles = sFiles.getLength();
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index dff88933905e..ecb950a30aba 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1137,8 +1137,6 @@ void SfxBindings::UpdateSlotServer_Impl()
{
if ( !nRegLevel )
{
- css::uno::Reference < css::frame::XFrame > xFrame
- ( pDispatcher->GetFrame()->GetFrame().GetFrameInterface(), UNO_QUERY );
pImpl->bContextChanged = false;
}
else
@@ -1728,7 +1726,6 @@ bool SfxBindings::IsInUpdate() const
void SfxBindings::SetVisibleState( sal_uInt16 nId, bool bShow )
{
- css::uno::Reference< css::frame::XDispatch > xDisp;
SfxStateCache *pCache = GetStateCache( nId );
if ( pCache )
pCache->SetVisibleState( bShow );
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index fb4a3f93dd65..606b4001c2bb 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -1033,7 +1033,6 @@ void SAL_CALL SfxDocumentMetaData::updateUserDefinedAndAttributes()
css::uno::Reference<css::xml::dom::XDocument> SAL_CALL
SfxDocumentMetaData::createDOM() const // throw (css::uno::RuntimeException)
{
- css::uno::Reference<css::lang::XMultiComponentFactory> xMsf ( m_xContext->getServiceManager());
css::uno::Reference<css::xml::dom::XDocumentBuilder> xBuilder( css::xml::dom::DocumentBuilder::create(m_xContext) );
css::uno::Reference<css::xml::dom::XDocument> xDoc = xBuilder->newDocument();
if (!xDoc.is())
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 979429bb9829..01108b65f849 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -1632,7 +1632,6 @@ void SfxMedium::TransactedTransferForFS_Impl( const INetURLObject& aSource,
{
bool bResult = false;
Reference< css::ucb::XCommandEnvironment > xDummyEnv;
- Reference< XOutputStream > aDestStream;
::ucbhelper::Content aOriginalContent;
try
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx
index b743ba2ecc76..3689525987c2 100644
--- a/sfx2/source/doc/doctempl.cxx
+++ b/sfx2/source/doc/doctempl.cxx
@@ -1527,7 +1527,6 @@ void SfxDocTemplate_Impl::AddRegion( const OUString& rTitle,
if ( xResultSet.is() )
{
- uno::Reference< XContentAccess > xContentAccess( xResultSet, UNO_QUERY );
uno::Reference< XRow > xRow( xResultSet, UNO_QUERY );
try
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 148e265ae524..32ece99f3782 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -385,7 +385,6 @@ void SfxObjectShell::UpdateFromTemplate_Impl( )
return;
// only for own storage formats
- uno::Reference< embed::XStorage > xDocStor = pFile->GetStorage();
if ( !pFile->GetFilter() || !pFile->GetFilter()->IsOwnFormat() )
return;
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 28dedc648552..183ee4ae1aea 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3631,7 +3631,6 @@ void SAL_CALL SfxBaseModel::storeToStorage( const Reference< embed::XStorage >&
{
SfxModelGuard aGuard( *this );
- Reference< embed::XStorage > xResult;
if ( !m_pData->m_pObjectShell.is() )
throw io::IOException(); // TODO:
@@ -3689,7 +3688,6 @@ void SAL_CALL SfxBaseModel::switchToStorage( const Reference< embed::XStorage >&
{
SfxModelGuard aGuard( *this );
- Reference< embed::XStorage > xResult;
if ( !m_pData->m_pObjectShell.is() )
throw io::IOException(); // TODO:
@@ -3718,7 +3716,6 @@ Reference< embed::XStorage > SAL_CALL SfxBaseModel::getDocumentStorage()
{
SfxModelGuard aGuard( *this );
- Reference< embed::XStorage > xResult;
if ( !m_pData->m_pObjectShell.is() )
throw io::IOException(); // TODO