diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 538d0af4dce6..2d9de3271d2d 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1020,7 +1020,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix, SvMetaAttribute * pAttr = rBase.GetAttrList()[m]; if (aSId.equals(pAttr->GetSlotId().getString())) { - SvMetaSlot* pSlot = PTR_CAST( SvMetaSlot, pAttr ); + SvMetaSlot* pSlot = dynamic_cast(pAttr); xEnumSlot = pSlot->Clone(); break; }