From 8a54339fc83fe9abaaace6f9f374697e6923d684 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 Aug 2021 10:15:01 +0200 Subject: loplugin:referencecasting look through more clang Types Note that because of where the fix resides, loplugin:redundantcast also notices a few more things. Change-Id: I0b66047fadfff2c5ceafcbd3eab085de00d861a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120865 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unoxml/source/dom/elementlist.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unoxml') diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx index c0ffb0f87929..c8fc604377de 100644 --- a/unoxml/source/dom/elementlist.cxx +++ b/unoxml/source/dom/elementlist.cxx @@ -93,7 +93,7 @@ namespace DOM { if (m_xEventListener.is() && m_pElement.is()) { - Reference< XEventTarget > xTarget(static_cast(m_pElement.get()), UNO_QUERY); + Reference< XEventTarget > xTarget = m_pElement; assert(xTarget.is()); if (!xTarget.is()) return; -- cgit