coverity#735444 Logically dead code

Change-Id: I32b6475812be6dfd9912f7fc6646b349cdbfbbe1
This commit is contained in:
Caolán McNamara 2014-06-06 21:00:01 +01:00
parent 6d462764cf
commit 8a0230e78c

View file

@ -84,7 +84,7 @@ bool XFTextStyle::Equal(IXFStyle *pStyle)
return false;
}
XFTextStyle *pOther = (XFTextStyle*)pStyle;
XFTextStyle *pOther = dynamic_cast<XFTextStyle*>(pStyle);
if( !pOther )
{
return false;