Kaydet (Commit) 2196d1b7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#982489 Unchecked dynamic_cast

Change-Id: I6211295884a2ddd4d2b1bfa2a9e1c2d31e6559da
üst c2a27dda
......@@ -263,7 +263,7 @@ ScVbaUserForm::getValue( const OUString& aPropertyName ) throw (beans::UnknownPr
{
uno::Reference< msforms::XControl > xVBAControl = ScVbaControlFactory::createUserformControl( mxContext, xControl, xDialogControl, m_xModel, mpGeometryHelper->getOffsetX(), mpGeometryHelper->getOffsetY() );
ScVbaControl* pControl = dynamic_cast< ScVbaControl* >( xVBAControl.get() );
if ( !m_sLibName.isEmpty() )
if (pControl && !m_sLibName.isEmpty())
pControl->setLibraryAndCodeName( m_sLibName.concat( "." ).concat( getName() ) );
aResult = uno::makeAny( xVBAControl );
}
......
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