diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 15:27:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 15:27:57 +0000 |
commit | 7593b006dfea88f065e463194001783c0c8b46af (patch) | |
tree | 684cd0d76592ede58fc869a5515b59ecfc5f1853 /basic | |
parent | coverity#736908 Allocation too small for type (diff) | |
download | core-7593b006dfea88f065e463194001783c0c8b46af.tar.gz core-7593b006dfea88f065e463194001783c0c8b46af.zip |
coverity#736909 Allocation too small for type
Change-Id: I330ebdfd94d0c30b40e180e307d7543c09fd334b
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 522a652ec023..1627f8edf87b 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -395,7 +395,7 @@ SbMethodRef DocObjectWrapper::getMethod( const OUString& aName ) throw (RuntimeE sal_uInt16 nSaveFlgs = m_pMod->GetFlags(); // Limit search to this module m_pMod->ResetFlag( SBX_GBLSEARCH ); - pMethod = (SbMethod*) m_pMod->SbModule::Find( aName, SbxCLASS_METHOD ); + pMethod = dynamic_cast<SbMethod*>(m_pMod->SbModule::Find(aName, SbxCLASS_METHOD)); m_pMod->SetFlags( nSaveFlgs ); } |