diff options
Diffstat (limited to 'editeng/source/editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 637f36a73cba..53b6820a0cdf 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -975,7 +975,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo sal_uInt16 nDicCount = static_cast<sal_uInt16>(aDics.getLength()); for (sal_uInt16 i = 0; i < nDicCount; i++) { - uno::Reference< linguistic2::XDictionary > xDicTmp( pDic[i], uno::UNO_QUERY ); + uno::Reference< linguistic2::XDictionary > xDicTmp = pDic[i]; if (!xDicTmp.is() || LinguMgr::GetIgnoreAllList() == xDicTmp) continue; diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 15a25c4cdd68..a30d658ba492 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1438,7 +1438,7 @@ OUString ImpEditView::SpellIgnoreWord() if ( !aWord.isEmpty() ) { - Reference< XDictionary > xDic( LinguMgr::GetIgnoreAllList(), UNO_QUERY ); + Reference< XDictionary > xDic = LinguMgr::GetIgnoreAllList(); if (xDic.is()) xDic->add( aWord, false, OUString() ); EditDoc& rDoc = pEditEngine->GetEditDoc(); @@ -2325,8 +2325,7 @@ void ImpEditView::RemoveDragAndDropListeners() if ( mxDnDListener.is() ) { - uno::Reference< lang::XEventListener> xEL( mxDnDListener, uno::UNO_QUERY ); - xEL->disposing( lang::EventObject() ); // #95154# Empty Source means it's the Client + mxDnDListener->disposing( lang::EventObject() ); // #95154# Empty Source means it's the Client mxDnDListener.clear(); } |