diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:25:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:43:16 +0100 |
commit | 0d7b898bf7b98116a8654e4754ae7bdd3fe7b21e (patch) | |
tree | 90ab0bcfbc83e186d237a62f74789c2a7e2d55e3 /idl | |
parent | 0baedc980495bc07491906f1bac4acf3ad040f94 (diff) |
coverity#1209786 Dereference before null check
Change-Id: I98bb62bbcb7ffbd2896ddbcbaeea27fff0851653
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/types.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index cf9cfa91cf88..fbf7f3556b09 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -388,7 +388,7 @@ sal_uLong SvMetaAttribute::MakeSlotValue( SvIdlDataBase & rBase, bool bVar ) con n = n << 20; n += rBase.aStructSlotId.GetValue(); } - if( PTR_CAST( SvMetaSlot, this ) ) + if (dynamic_cast<const SvMetaSlot*>(this)) n |= 0x20000; if( !bVar ) n += 0x10000; |