summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-08 14:33:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-08 18:32:33 +0200
commit11bdb6b9d9df991bb4ee48d4682458facaa2bdd5 (patch)
tree29180dbac55048e038c404769d059780f39f21a3 /sw/source
parentc69e5e3cc08bfbb4a5f6c756c523e4016c8fd1dd (diff)
improve loplugin:referencecasting
to catch a few more cases Change-Id: I0323fba51bb2b4ba255e1db5aa0d890c5c6a2e1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93726 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/html/htmlforw.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlforw.cxx b/sw/source/filter/html/htmlforw.cxx
index 497d6d3ace11..ab41378d11b5 100644
--- a/sw/source/filter/html/htmlforw.cxx
+++ b/sw/source/filter/html/htmlforw.cxx
@@ -106,8 +106,7 @@ static void lcl_html_outEvents( SvStream& rStrm,
}
else if( auto x2 = o3tl::tryAccess<uno::Reference<form::XForm>>(aTmp) )
{
- uno::Reference< form::XFormComponent > xFC( *x2, uno::UNO_QUERY );
- if( rFormComp == xFC )
+ if( rFormComp == *x2 )
break;
}
else