diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-09-28 11:42:43 +0200 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-09-29 12:26:20 +0000 |
commit | d3c7c9ea81ee7c617f8cee5b645621088aea215b (patch) | |
tree | 116b8534291360181d80a53554c930caf186f15e /basic/source/runtime/methods.cxx | |
parent | 2bce2365e7d411c1673e709eb1abc89da9f651dc (diff) |
tdf#94559: first step to remove rtti.hxx
replaced use of PTR_CAST, IS_TYPE, ISA in
avmedia, basctl, basic, cui, dbaccess, vcl,xmloff
Change-Id: If4496762e82e896b6fbc362e6626502703c245f5
Reviewed-on: https://gerrit.libreoffice.org/18905
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 598b83c33dea..ae5b76965374 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -2523,7 +2523,7 @@ RTLFUNC(IsObject) SbUnoClass* pUnoClass; bool bObject; - if( pObj && NULL != ( pUnoClass=PTR_CAST(SbUnoClass,pObj) ) ) + if( pObj && NULL != ( pUnoClass=dynamic_cast<SbUnoClass*>( pObj) ) ) { bObject = pUnoClass->getUnoClass().is(); } @@ -2612,12 +2612,12 @@ RTLFUNC(IsError) else { SbxVariable* pVar =rPar.Get( 1 ); - SbUnoObject* pObj = PTR_CAST(SbUnoObject,pVar ); + SbUnoObject* pObj = dynamic_cast<SbUnoObject*>( pVar ); if ( !pObj ) { if ( SbxBase* pBaseObj = pVar->GetObject() ) { - pObj = PTR_CAST(SbUnoObject, pBaseObj ); + pObj = dynamic_cast<SbUnoObject*>( pBaseObj ); } } uno::Reference< script::XErrorQuery > xError; @@ -3838,12 +3838,12 @@ OUString getObjectTypeName( SbxVariable* pVar ) } else { - SbUnoObject* pUnoObj = PTR_CAST(SbUnoObject,pVar ); + SbUnoObject* pUnoObj = dynamic_cast<SbUnoObject*>( pVar ); if ( !pUnoObj ) { if ( SbxBase* pBaseObj = pVar->GetObject() ) { - pUnoObj = PTR_CAST(SbUnoObject, pBaseObj ); + pUnoObj = dynamic_cast<SbUnoObject*>( pBaseObj ); } } if ( pUnoObj ) @@ -4160,7 +4160,7 @@ RTLFUNC(LBound) return; } SbxBase* pParObj = rPar.Get(1)->GetObject(); - SbxDimArray* pArr = PTR_CAST(SbxDimArray,pParObj); + SbxDimArray* pArr = dynamic_cast<SbxDimArray*>( pParObj ); if( pArr ) { sal_Int32 nLower, nUpper; @@ -4187,7 +4187,7 @@ RTLFUNC(UBound) } SbxBase* pParObj = rPar.Get(1)->GetObject(); - SbxDimArray* pArr = PTR_CAST(SbxDimArray,pParObj); + SbxDimArray* pArr = dynamic_cast<SbxDimArray*>( pParObj ); if( pArr ) { sal_Int32 nLower, nUpper; |