From 31693833dc832228c3821f83e045b6869ec22cf2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Mar 2021 10:48:52 +0100 Subject: loplugin:referencecasting (clang-cl) Change-Id: If32c6f6d3618c134cfb2ac89e827491525c34687 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111811 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- winaccessibility/source/service/AccObjectWinManager.cxx | 2 +- winaccessibility/source/service/msaaservice_impl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'winaccessibility') diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx index 1e74be1d0369..4022a700eca1 100644 --- a/winaccessibility/source/service/AccObjectWinManager.cxx +++ b/winaccessibility/source/service/AccObjectWinManager.cxx @@ -721,7 +721,7 @@ bool AccObjectWinManager::InsertAccObj( XAccessible* pXAcc,XAccessible* pParentX Reference broadcaster(xComponent,UNO_QUERY); if (broadcaster.is()) { - Reference const xListener(pListener.get()); + Reference const xListener(pListener); broadcaster->addAccessibleEventListener(xListener); } else diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx index be9fd22ba58e..13f10a6d7d74 100644 --- a/winaccessibility/source/service/msaaservice_impl.cxx +++ b/winaccessibility/source/service/msaaservice_impl.cxx @@ -235,7 +235,7 @@ MSAAServiceImpl::MSAAServiceImpl() if( xToolkit.is() ) { m_pTopWindowListener.set(new AccTopWindowListener()); - Reference const xRef(m_pTopWindowListener.get()); + Reference const xRef(m_pTopWindowListener); xToolkit->addTopWindowListener( xRef ); SAL_INFO( "iacc2", "successfully connected to the toolkit event hose" ); } -- cgit