diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-19 13:13:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-19 15:37:57 +0000 |
commit | 2196d1b7508e5e4da1be485c37adbd980f59b97f (patch) | |
tree | 6eef9752ac8f554bc1638d5b1c11b8a46e74b3a4 /vbahelper | |
parent | c2a27dda25943a148f30cad44b71052a606879ed (diff) |
coverity#982489 Unchecked dynamic_cast
Change-Id: I6211295884a2ddd4d2b1bfa2a9e1c2d31e6559da
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/msforms/vbauserform.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/msforms/vbauserform.cxx b/vbahelper/source/msforms/vbauserform.cxx index 70fd50ebd424..85a12654cb5a 100644 --- a/vbahelper/source/msforms/vbauserform.cxx +++ b/vbahelper/source/msforms/vbauserform.cxx @@ -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 ); } |