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];
|
SvMetaAttribute * pAttr = rBase.GetAttrList()[m];
|
||||||
if (aSId.equals(pAttr->GetSlotId().getString()))
|
if (aSId.equals(pAttr->GetSlotId().getString()))
|
||||||
{
|
{
|
||||||
SvMetaSlot* pSlot = dynamic_cast<SvMetaSlot*>(pAttr);
|
SvMetaSlot& rSlot = dynamic_cast<SvMetaSlot&>(*pAttr);
|
||||||
xEnumSlot = pSlot->Clone();
|
xEnumSlot = rSlot.Clone();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user