coverity#1209793 Dereference before null check
Change-Id: I5c89f7291117d66ff07f7d686c7030396cb504df
This commit is contained in:
parent
1732919a6e
commit
0698ccf040
1 changed files with 1 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix,
|
|||
SvMetaAttribute * pAttr = rBase.GetAttrList()[m];
|
||||
if (aSId.equals(pAttr->GetSlotId().getString()))
|
||||
{
|
||||
SvMetaSlot* pSlot = PTR_CAST( SvMetaSlot, pAttr );
|
||||
SvMetaSlot* pSlot = dynamic_cast<SvMetaSlot*>(pAttr);
|
||||
xEnumSlot = pSlot->Clone();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue