From ac9671f94800b647f82b12e718968311a025e87e Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Tue, 29 Sep 2015 11:00:09 +0200 Subject: tdf#94559: second step to remove rtti.hxx replaced use of PTR_CAST, IS_TYPE, ISA in chart2, connectivity, editeng, extensions, filter, forms, framework, idl Change-Id: I6a2f9d8bbccb07088413f7552af4b5af8f0cad99 Reviewed-on: https://gerrit.libreoffice.org/18920 Tested-by: Jenkins Reviewed-by: Oliver Specht --- idl/source/objects/slot.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'idl') diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 2b1c17265da8..42cf2f08b39c 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -428,7 +428,7 @@ bool SvMetaSlot::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) if( pAttr ) { // c - SvMetaSlot * pKnownSlot = PTR_CAST( SvMetaSlot, pAttr ); + SvMetaSlot * pKnownSlot = dynamic_cast( pAttr ); if( pKnownSlot ) { SetRef( pKnownSlot ); @@ -453,7 +453,7 @@ bool SvMetaSlot::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) if( pAttr2 ) { // for testing purposes: reference in case of complete definition - SvMetaSlot * pKnownSlot = PTR_CAST( SvMetaSlot, pAttr2 ); + SvMetaSlot * pKnownSlot = dynamic_cast( pAttr2 ); if( pKnownSlot ) { SetRef( pKnownSlot ); @@ -555,7 +555,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix, // iron out EnumSlots SvMetaTypeEnum * pEnum = NULL; SvMetaType * pBType = GetType()->GetBaseType(); - pEnum = PTR_CAST( SvMetaTypeEnum, pBType ); + pEnum = dynamic_cast( pBType ); if( GetPseudoSlots() && pEnum && pEnum->Count() ) { // clone the MasterSlot -- cgit