coverity#1209405 Unchecked dynamic_cast

Change-Id: I5b16007b514169e2349c8c3a78d3c150c9d52d85
This commit is contained in:
Caolán McNamara
2014-05-26 15:09:46 +01:00
parent 9fbcf18e53
commit 0897a5a8c5

View File

@@ -1020,8 +1020,8 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix,
SvMetaAttribute * pAttr = rBase.GetAttrList()[m];
if (aSId.equals(pAttr->GetSlotId().getString()))
{
SvMetaSlot* pSlot = dynamic_cast<SvMetaSlot*>(pAttr);
xEnumSlot = pSlot->Clone();
SvMetaSlot& rSlot = dynamic_cast<SvMetaSlot&>(*pAttr);
xEnumSlot = rSlot.Clone();
break;
}
}