summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-24 15:22:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-24 15:22:55 +0000
commitfcf23e8a44f410e79149b9e7a649d42cc245026b (patch)
treee08936598b625991f2d2cad44c68e3974c02e2a0 /basic
parentdef94cc40ef9a9b3498032e24c178a6c3c74262e (diff)
coverity#706117 Allocation too small for type
Change-Id: I1bb2bd26e533cf5b7de5225f0bcf323446e69f63
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index a797947507ee..7a22f786c771 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -2074,8 +2074,8 @@ SbxObject* implCreateDialog( uno::Sequence< sal_Int8 > aData )
{
sal_Int8* pData = aData.getArray();
SvMemoryStream aMemStream( pData, aData.getLength(), STREAM_READ );
- SbxObject* pDialog = (SbxObject*)SbxBase::Load( aMemStream );
- return pDialog;
+ SbxBase* pBase = SbxBase::Load( aMemStream );
+ return dynamic_cast<SbxObject*>(pBase);
}
// HACK! Because this value is defined in basctl/inc/vcsbxdef.hxx