summaryrefslogtreecommitdiff
path: root/vcl/source/control/edit.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 18:26:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-21 08:50:11 +0200
commitf292f808a1ced65db45141772dbd6e45c5d151ea (patch)
treeb1be7fb0f652f7474f729d4307ed1e09f50772d4 /vcl/source/control/edit.cxx
parent7272951c121735a7350fa70840b255b7ef831f1a (diff)
loplugin:referencecasting in vbahelper..vcl
Change-Id: I2bd9e2c4e8a3d56a7b2168bd2ccff389051e5b4c Reviewed-on: https://gerrit.libreoffice.org/76032 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r--vcl/source/control/edit.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 8485dfcd41af..37c135fbd1bd 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -238,8 +238,7 @@ void Edit::dispose()
GetDropTarget()->removeDropTargetListener( xDTL );
}
- uno::Reference< lang::XEventListener> xEL( mxDnDListener, uno::UNO_QUERY );
- xEL->disposing( lang::EventObject() ); // #95154# #96585# Empty Source means it's the Client
+ mxDnDListener->disposing( lang::EventObject() ); // #95154# #96585# Empty Source means it's the Client
mxDnDListener.clear();
}
@@ -808,7 +807,7 @@ void Edit::ImplInsertText( const OUString& rStr, const Selection* pNewSel, bool
// determine if input-sequence-checking should be applied or not
- uno::Reference < i18n::XBreakIterator > xBI( ImplGetBreakIterator(), UNO_QUERY );
+ uno::Reference < i18n::XBreakIterator > xBI = ImplGetBreakIterator();
bool bIsInputSequenceChecking = rStr.getLength() == 1 &&
officecfg::Office::Common::I18N::CTL::CTLFont::get() &&
officecfg::Office::Common::I18N::CTL::CTLSequenceChecking::get() &&