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