Kaydet (Commit) 98b67379 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Fridrich Štrba

coverity#1209405 Unchecked dynamic_cast

Change-Id: I5b16007b514169e2349c8c3a78d3c150c9d52d85
üst cbc6b11d
...@@ -1020,8 +1020,8 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix, ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment