From ead920a48aa8c35075fdb980b9d213ff1c580dd1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 20 Oct 2017 20:51:50 +0200 Subject: loplugin:redundantcast handle dynamic_cast Change-Id: I7855c76e820efce96778b1c19ec71dffcc4b4abb Reviewed-on: https://gerrit.libreoffice.org/43621 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basic/source/sbx/sbxobj.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic/source/sbx') diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx index 4bdc64e86c1f..56bec717b8aa 100644 --- a/basic/source/sbx/sbxobj.cxx +++ b/basic/source/sbx/sbxobj.cxx @@ -845,9 +845,9 @@ void SbxObject::Dump( SvStream& rStrm, bool bFill ) { pSbxObj->Dump(rStrm, bFill); } - else if (SbxVariable *pSbxVar = dynamic_cast(pVar)) + else { - pSbxVar->Dump(rStrm, bFill); + pVar->Dump(rStrm, bFill); } } } -- cgit