From 51558d2215a4cf881e357eda7da20688ac61e780 Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 15 Feb 2021 20:00:01 +0200 Subject: loplugin:referencecasting in hwpfilter..lotuswordpro Change-Id: Ib4a1ae456c44638386425e690a089360e991b26c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110949 Tested-by: Jenkins Reviewed-by: Noel Grandin --- linguistic/source/convdiclist.cxx | 2 +- linguistic/source/dlistimp.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index f5a7e8e34b9e..43d75141bc01 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -389,7 +389,7 @@ uno::Reference< container::XNameContainer > SAL_CALL ConvDicList::getDictionaryC MutexGuard aGuard( GetLinguMutex() ); GetNameContainer(); DBG_ASSERT( mxNameContainer.is(), "missing name container" ); - return mxNameContainer.get(); + return mxNameContainer; } uno::Reference< XConversionDictionary > SAL_CALL ConvDicList::addNewDictionary( diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index c0f5f800c688..eb48e7e5311b 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -396,7 +396,7 @@ sal_Bool SAL_CALL DicList::addDictionary( bRes = true; // add listener helper to the dictionaries listener lists - xDictionary->addDictionaryEventListener( mxDicEvtLstnrHelper.get() ); + xDictionary->addDictionaryEventListener( mxDicEvtLstnrHelper ); } return bRes; } @@ -422,7 +422,7 @@ sal_Bool SAL_CALL // deactivate dictionary if not already done xDic->setActive( false ); - xDic->removeDictionaryEventListener( mxDicEvtLstnrHelper.get() ); + xDic->removeDictionaryEventListener( mxDicEvtLstnrHelper ); } // remove element at nPos @@ -546,7 +546,7 @@ void SAL_CALL // release references to (members of) this object hold by // dictionaries if (rDicList[i].is()) - rDicList[i]->removeDictionaryEventListener( mxDicEvtLstnrHelper.get() ); + rDicList[i]->removeDictionaryEventListener( mxDicEvtLstnrHelper ); } } mxDicEvtLstnrHelper.clear(); -- cgit