diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:20:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:43:15 +0100 |
commit | 0698ccf040c8805cb0e33e3786c5780f6048a5ca (patch) | |
tree | 4b4d74af257ab73eef4312ff0c37750869de09d7 /idl | |
parent | 1732919a6e434adca31d4a9d4daa95e19e14c342 (diff) |
coverity#1209793 Dereference before null check
Change-Id: I5c89f7291117d66ff07f7d686c7030396cb504df
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/slot.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 538d0af4dce6..2d9de3271d2d 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -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; } |