coverity#1325250 Unchecked dynamic_cast
Change-Id: Id52cad11d2ca4ef42a31c0905ee123ccd53e0677
This commit is contained in:
@@ -141,9 +141,8 @@ SbxVariable* getDefaultProp( SbxVariable* pRef )
|
||||
SbxBase* pObjVarObj = pRef->GetObject();
|
||||
pObj = dynamic_cast<SbxObject*>( pObjVarObj );
|
||||
}
|
||||
if ( pObj && 0 != dynamic_cast<const SbUnoObject*>( pObj) )
|
||||
if (SbUnoObject* pUnoObj = dynamic_cast<SbUnoObject*>(pObj))
|
||||
{
|
||||
SbUnoObject* pUnoObj = dynamic_cast<SbUnoObject*>( pObj );
|
||||
pDefaultProp = pUnoObj->GetDfltProperty();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user