Kaydet (Commit) 0d7b898b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209786 Dereference before null check

Change-Id: I98bb62bbcb7ffbd2896ddbcbaeea27fff0851653
üst 0baedc98
...@@ -388,7 +388,7 @@ sal_uLong SvMetaAttribute::MakeSlotValue( SvIdlDataBase & rBase, bool bVar ) con ...@@ -388,7 +388,7 @@ sal_uLong SvMetaAttribute::MakeSlotValue( SvIdlDataBase & rBase, bool bVar ) con
n = n << 20; n = n << 20;
n += rBase.aStructSlotId.GetValue(); n += rBase.aStructSlotId.GetValue();
} }
if( PTR_CAST( SvMetaSlot, this ) ) if (dynamic_cast<const SvMetaSlot*>(this))
n |= 0x20000; n |= 0x20000;
if( !bVar ) if( !bVar )
n += 0x10000; n += 0x10000;
......
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