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 /cui | |
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 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 5 | ||||
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 1 | ||||
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 1 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 1 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 3 |
5 files changed, 1 insertions, 10 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 92c3422731ce..3228f627e6ab 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -4166,9 +4166,6 @@ void ToolbarSaveInData::CreateToolbar( SvxConfigEntry* pToolbar ) uno::Reference< container::XIndexAccess > xSettings( GetConfigManager()->createSettings(), uno::UNO_QUERY ); - uno::Reference< container::XIndexContainer > - xIndexContainer ( xSettings, uno::UNO_QUERY ); - uno::Reference< beans::XPropertySet > xPropertySet( xSettings, uno::UNO_QUERY ); @@ -5321,8 +5318,6 @@ void SvxIconSelectorDialog::ImportGraphics( OUString aIconName; uno::Sequence< beans::PropertyValue > aMediaProps( 1 ); aMediaProps[0].Name = "URL"; - uno::Reference< css::ui::XUIConfigurationPersistence > - xConfigPer( m_xImportedImageManager, uno::UNO_QUERY ); if ( rPaths.getLength() == 1 ) { diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 5fa6aeee1760..237da1ab0079 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1097,7 +1097,6 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck) ++i; } - uno::Reference< lang::XServiceInfo > xInfo( aStart->xGrammarChecker, uno::UNO_QUERY ); SpellErrorDescription aDesc( true, aStart->sText, LanguageTag::convertToLocale( aStart->eLanguage ), diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index e4106a558944..ca8bd5d5c392 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -524,7 +524,6 @@ short SvxScriptOrgDialog::Execute() ( pDoc->GetModel(), UNO_QUERY ); if ( xSPS.is() ) { - Reference< provider::XScriptProvider > ScriptProvider = xSPS->getScriptProvider(); } diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 148cbc025b50..37edc4c67692 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1574,7 +1574,6 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, Button *, pBtn, void ) xDic = aDics.getConstArray()[ nDicPos ]; if (xDic.is()) { - uno::Reference< XSpellChecker1 > xSpellChecker1; SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if(pFact) { diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 5cb57a8a3de8..b731fc6f35f8 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -2387,8 +2387,7 @@ void OfaAutoCompleteTabPage::CopyToClipboard() const sal_Int32 nSelCnt = m_pLBEntries->GetSelectEntryCount(); if (m_pAutoCompleteList && nSelCnt) { - TransferDataContainer* pCntnr = new TransferDataContainer; - css::uno::Reference< css::datatransfer::XTransferable > xRef( pCntnr ); + rtl::Reference<TransferDataContainer> pCntnr = new TransferDataContainer; OStringBuffer sData; |