From aff0c2f2baa98429dff69211dddcb47b4cdf4d91 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 27 Sep 2019 09:21:26 +0100 Subject: cid#1448524 silence Unchecked dynamic_cast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9ba17a4a31382850b76c98bb435e63eb19ee7903 Reviewed-on: https://gerrit.libreoffice.org/79677 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/unomodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 823f864a458e..ad21f46a002c 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -317,7 +317,7 @@ uno::Any SAL_CALL SmModel::queryInterface( const uno::Type& rType ) { uno::Any aRet = ::cppu::queryInterface ( rType, // OWeakObject interfaces - dynamic_cast< XInterface* > ( static_cast< XUnoTunnel* > ( this )), + &dynamic_cast(static_cast(*this)), static_cast< XWeak* > ( this ), // PropertySetHelper interfaces static_cast< XPropertySet* > ( this ), -- cgit