diff options
Diffstat (limited to 'idl/source/objects/slot.cxx')
-rw-r--r-- | idl/source/objects/slot.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<SvMetaSlot*>(pAttr); - xEnumSlot = pSlot->Clone(); + SvMetaSlot& rSlot = dynamic_cast<SvMetaSlot&>(*pAttr); + xEnumSlot = rSlot.Clone(); break; } } |