coverity#1325250 Unchecked dynamic_cast
Change-Id: Id52cad11d2ca4ef42a31c0905ee123ccd53e0677
This commit is contained in:
parent
792d507eec
commit
e31cd8f3ae
@ -135,15 +135,14 @@ SbxVariable* getDefaultProp( SbxVariable* pRef )
|
||||
SbxVariable* pDefaultProp = NULL;
|
||||
if ( pRef->GetType() == SbxOBJECT )
|
||||
{
|
||||
SbxObject* pObj = dynamic_cast<SbxObject*>( pRef );
|
||||
if ( !pObj )
|
||||
SbxObject* pObj = dynamic_cast<SbxObject*>(pRef);
|
||||
if (!pObj)
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user