summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-07 10:47:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-07 17:17:25 +0200
commit773a7b57fa99bdda9cde59937cd1987384ae533a (patch)
tree9909d560e9c14ccd9963ee4eb58a74f4f3ea6288 /linguistic
parente20d997eb3eb5c81af907718989aba4a6f9fc950 (diff)
no need to use UNO_QUERY here
Change-Id: I1bfe8238d7c08f27d2b21f9fe79712aba045c812 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120152 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngopt.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index ac9f0678ffaf..304675fd413c 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -199,9 +199,7 @@ void LinguProps::launchEvent( const PropertyChangeEvent &rEvt ) const
cppu::OInterfaceIteratorHelper aIt( *pContainer );
while (aIt.hasMoreElements())
{
- Reference< XPropertyChangeListener > xRef( aIt.next(), UNO_QUERY );
- if (xRef.is())
- xRef->propertyChange( rEvt );
+ static_cast< XPropertyChangeListener* >( aIt.next() )->propertyChange( rEvt );
}
}
}