coverity#735442 Logically dead code

Change-Id: I8e182a18e70f230e67f2f452bbfca442e5585212
This commit is contained in:
Caolán McNamara 2014-06-06 20:59:20 +01:00
parent 9656d6c488
commit 6d462764cf

View file

@ -79,7 +79,7 @@ bool XFNumberStyle::Equal(IXFStyle *pStyle)
{
if( !pStyle || pStyle->GetStyleFamily() != enumXFStyleNumber )
return false;
XFNumberStyle *pOther = (XFNumberStyle*)pStyle;
XFNumberStyle *pOther = dynamic_cast<XFNumberStyle*>(pStyle);
if( !pOther )
return false;