Kaydet (Commit) 7593b006 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736909 Allocation too small for type

Change-Id: I330ebdfd94d0c30b40e180e307d7543c09fd334b
üst 28793abd
...@@ -395,7 +395,7 @@ SbMethodRef DocObjectWrapper::getMethod( const OUString& aName ) throw (RuntimeE ...@@ -395,7 +395,7 @@ SbMethodRef DocObjectWrapper::getMethod( const OUString& aName ) throw (RuntimeE
sal_uInt16 nSaveFlgs = m_pMod->GetFlags(); sal_uInt16 nSaveFlgs = m_pMod->GetFlags();
// Limit search to this module // Limit search to this module
m_pMod->ResetFlag( SBX_GBLSEARCH ); 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 ); m_pMod->SetFlags( nSaveFlgs );
} }
......
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