diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 14:04:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 14:52:09 +0200 |
commit | 0a4e138d3ac3609f2e1465c8a949d07eb89bccf0 (patch) | |
tree | edd98c075216ea4245c343ea5223856936faf8cc /editeng/source/misc/unolingu.cxx | |
parent | 9987bb6ee096afada1dac848db95b3c311f723f7 (diff) |
loplugin:referencecasting in editeng
Change-Id: I584266ba58e55e6435e76180227c0a5756aa0c23
Reviewed-on: https://gerrit.libreoffice.org/75950
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/misc/unolingu.cxx')
-rw-r--r-- | editeng/source/misc/unolingu.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index a96deb381edd..10c184aaa2f7 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -600,9 +600,8 @@ uno::Reference< XDictionary > LinguMgr::GetIgnoreAll() if (xTmpDicList.is()) { std::locale loc(Translate::Create("svt")); - xIgnoreAll.set( xTmpDicList->getDictionaryByName( - Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) ), - UNO_QUERY ); + xIgnoreAll = xTmpDicList->getDictionaryByName( + Translate::get(STR_DESCRIPTION_IGNOREALLLIST, loc) ); } return xIgnoreAll; } @@ -615,14 +614,13 @@ uno::Reference< XDictionary > LinguMgr::GetChangeAll() if (!pExitLstnr) pExitLstnr = new LinguMgrExitLstnr; - uno::Reference< XSearchableDictionaryList > _xDicList( GetDictionaryList() , UNO_QUERY ); + uno::Reference< XSearchableDictionaryList > _xDicList = GetDictionaryList(); if (_xDicList.is()) { - xChangeAll.set( _xDicList->createDictionary( + xChangeAll = _xDicList->createDictionary( "ChangeAllList", LanguageTag::convertToLocale( LANGUAGE_NONE ), - DictionaryType_NEGATIVE, OUString() ), - UNO_QUERY ); + DictionaryType_NEGATIVE, OUString() ); } return xChangeAll; } @@ -640,8 +638,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard() return nullptr; const OUString aDicName( "standard.dic" ); - uno::Reference< XDictionary > xDic( xTmpDicList->getDictionaryByName( aDicName ), - UNO_QUERY ); + uno::Reference< XDictionary > xDic = xTmpDicList->getDictionaryByName( aDicName ); if (!xDic.is()) { // try to create standard dictionary @@ -663,7 +660,7 @@ uno::Reference< XDictionary > LinguMgr::GetStandard() xTmpDicList->addDictionary( xTmp ); xTmp->setActive( true ); } - xDic.set( xTmp, UNO_QUERY ); + xDic = xTmp; } #if OSL_DEBUG_LEVEL > 1 uno::Reference< XStorable > xStor( xDic, UNO_QUERY ); |