diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 15:26:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 15:26:47 +0000 |
commit | 28793abda5bdb55bedb21213a9aa06efe095a931 (patch) | |
tree | 993920bbb5a2c6662e27180bacf9d44608f60cab | |
parent | fcf23e8a44f410e79149b9e7a649d42cc245026b (diff) |
coverity#736908 Allocation too small for type
Change-Id: Ic41c5071957f5e95322971f8ec3ef864edecdb20
-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 9f283d5ce35b..522a652ec023 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -410,7 +410,7 @@ SbPropertyRef DocObjectWrapper::getProperty( const OUString& aName ) throw (Runt sal_uInt16 nSaveFlgs = m_pMod->GetFlags(); // Limit search to this module. m_pMod->ResetFlag( SBX_GBLSEARCH ); - pProperty = (SbProperty*)m_pMod->SbModule::Find( aName, SbxCLASS_PROPERTY ); + pProperty = dynamic_cast<SbProperty*>(m_pMod->SbModule::Find(aName, SbxCLASS_PROPERTY)); m_pMod->SetFlag( nSaveFlgs ); } |