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/editeng/impedit.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/editeng/impedit.cxx')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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(); } |