summaryrefslogtreecommitdiff
path: root/ucb/source/cacher
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-08 15:50:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-09 07:42:11 +0100
commit066799b4a162aa0a4bc6aa28339f1f943a13971e (patch)
tree397b5553044498a9cb7c9ec38fbab2fe7b6b2841 /ucb/source/cacher
parent80ad69dc67fa0bfaf6f99cd0b5a458dcaaee6e33 (diff)
loplugin:referencecasting check for Reference::query
Change-Id: I008d16d933c70df132699872ac4c39a5c1f87b34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110592 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/cacher')
-rw-r--r--ucb/source/cacher/dynamicresultsetwrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/cacher/dynamicresultsetwrapper.cxx b/ucb/source/cacher/dynamicresultsetwrapper.cxx
index 28dc828944a2..3aa765da316a 100644
--- a/ucb/source/cacher/dynamicresultsetwrapper.cxx
+++ b/ucb/source/cacher/dynamicresultsetwrapper.cxx
@@ -301,7 +301,7 @@ void SAL_CALL DynamicResultSetWrapper::setSource( const Reference< XInterface >
else if( bStatic )
{
Reference< XComponent > xSourceComponent( Source, UNO_QUERY );
- xSourceComponent->addEventListener( Reference< XEventListener > ::query( xMyListenerImpl ) );
+ xSourceComponent->addEventListener( xMyListenerImpl );
}
m_aSourceSet.set();
}
@@ -354,7 +354,7 @@ void SAL_CALL DynamicResultSetWrapper::setListener( const Reference< XDynamicRes
throw ListenerAlreadySetException();
m_xListener = Listener;
- addEventListener( Reference< XEventListener >::query( Listener ) );
+ addEventListener( Listener );
xSource = m_xSource;
xMyListenerImpl = m_xMyListenerImpl.get();