summaryrefslogtreecommitdiff
path: root/framework/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 20:06:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 07:55:40 +0200
commit952b806c22f798977f5478dd630131acf1a5f068 (patch)
tree9abbb9c472343200ecf9d7afa7a1589b5686fa7d /framework/inc
parent85b1d47450fa33f772d06353c4dad8da4d22f114 (diff)
loplugin:referencecasting in framework
Change-Id: I49aee4023fdb3173d842c19a53f9170ca1e725e4 Reviewed-on: https://gerrit.libreoffice.org/75972 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc')
-rw-r--r--framework/inc/dispatch/interceptionhelper.hxx3
1 files changed, 1 insertions, 2 deletions
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();