From 952b806c22f798977f5478dd630131acf1a5f068 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 19 Jul 2019 20:06:30 +0200 Subject: loplugin:referencecasting in framework Change-Id: I49aee4023fdb3173d842c19a53f9170ca1e725e4 Reviewed-on: https://gerrit.libreoffice.org/75972 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/inc/dispatch/interceptionhelper.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/inc') diff --git a/framework/inc/dispatch/interceptionhelper.hxx b/framework/inc/dispatch/interceptionhelper.hxx index 446ba2537354..fd8e342c4c34 100644 --- a/framework/inc/dispatch/interceptionhelper.hxx +++ b/framework/inc/dispatch/interceptionhelper.hxx @@ -88,11 +88,10 @@ class InterceptionHelper : public ::cppu::WeakImplHelper< */ iterator findByReference(const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& xInterceptor) { - css::uno::Reference< css::frame::XDispatchProviderInterceptor > xProviderInterface(xInterceptor, css::uno::UNO_QUERY); iterator pIt; for (pIt=begin(); pIt!=end(); ++pIt) { - if (pIt->xInterceptor == xProviderInterface) + if (pIt->xInterceptor == xInterceptor) return pIt; } return end(); -- cgit