summaryrefslogtreecommitdiffstats
path: root/basic/source/sbx/sbxdec.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/sbx/sbxdec.cxx')
-rw-r--r--basic/source/sbx/sbxdec.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index df561c715319..452832d3ddd8 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -478,7 +478,7 @@ start:
break;
case SbxOBJECT:
{
- SbxValue* pVal = PTR_CAST(SbxValue,p->pObj);
+ SbxValue* pVal = dynamic_cast<SbxValue*>( p->pObj );
if( pVal )
pnDecRes->setDecimal( pVal->GetDecimal() );
else
@@ -597,7 +597,7 @@ start:
break;
case SbxOBJECT:
{
- SbxValue* pVal = PTR_CAST(SbxValue,p->pObj);
+ SbxValue* pVal = dynamic_cast<SbxValue*>( p->pObj );
if( pVal )
pVal->PutDecimal( pDec );
else