diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:09:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-26 15:51:59 +0100 |
commit | 0897a5a8c538d9c7a8949d1f9fbe426523b95533 (patch) | |
tree | 2071ab4b4831e70bc24a9459a347b18ca41822ad /idl/source | |
parent | 9fbcf18e5372230f02d080a4860b8c358267a185 (diff) |
coverity#1209405 Unchecked dynamic_cast
Change-Id: I5b16007b514169e2349c8c3a78d3c150c9d52d85
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/slot.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 2d9de3271d2d..b1996c21aedb 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -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; } } |