coverity#1209405 Unchecked dynamic_cast
Change-Id: I5b16007b514169e2349c8c3a78d3c150c9d52d85
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user