summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-27 09:21:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-27 12:11:48 +0200
commitaff0c2f2baa98429dff69211dddcb47b4cdf4d91 (patch)
treeb80046f1c3c6aaa4a0feb08cbbe0344af8c250f9 /starmath
parent66fe473fb66b76352039e3618bab43a281d5cdca (diff)
cid#1448524 silence Unchecked dynamic_cast
Change-Id: I9ba17a4a31382850b76c98bb435e63eb19ee7903 Reviewed-on: https://gerrit.libreoffice.org/79677 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/unomodel.cxx2
1 files changed, 1 insertions, 1 deletions
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<XInterface&>(static_cast<XUnoTunnel&>(*this)),
static_cast< XWeak* > ( this ),
// PropertySetHelper interfaces
static_cast< XPropertySet* > ( this ),