coverity#1038298 Unchecked dynamic_cast

Change-Id: Ibb2eca48edb30a88b1ab4bcc35e7e5852efbb436
This commit is contained in:
Miklos Vajna
2014-05-04 21:21:29 +02:00
parent da47a7d239
commit d6c42a503f

View File

@@ -1870,9 +1870,9 @@ void SwAccessibleParagraph::_getDefaultAttributesImpl(
break;
}
if ( dynamic_cast<const SwFlyFrm*>(pUpperFrm) )
if ( const SwFlyFrm* pFlyFrm = dynamic_cast<const SwFlyFrm*>(pUpperFrm) )
{
pUpperFrm = dynamic_cast<const SwFlyFrm*>(pUpperFrm)->GetAnchorFrm();
pUpperFrm = pFlyFrm->GetAnchorFrm();
}
else
{