diff options
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/slot.hxx | 3 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 9 |
2 files changed, 2 insertions, 10 deletions
diff --git a/idl/inc/slot.hxx b/idl/inc/slot.hxx index 87118d6cf8de..5513009ce3a4 100644 --- a/idl/inc/slot.hxx +++ b/idl/inc/slot.hxx @@ -88,9 +88,6 @@ public: } public: - SvMetaObject * MakeClone() const; - SvMetaSlot *Clone() const { return static_cast<SvMetaSlot *>(MakeClone()); } - SvMetaSlot(); SvMetaSlot( SvMetaType * pType ); diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index eee05ade65ea..9ae31d437cc9 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -27,11 +27,6 @@ #include <database.hxx> -SvMetaObject *SvMetaSlot::MakeClone() const -{ - return new SvMetaSlot( *this ); -} - SvMetaSlot::SvMetaSlot() : aRecordPerSet( true ) , aRecordAbsolute( false ) @@ -480,7 +475,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix, if (aSId.equals(pAttr->GetSlotId().getString())) { SvMetaSlot& rSlot = dynamic_cast<SvMetaSlot&>(*pAttr); - xEnumSlot = rSlot.Clone(); + xEnumSlot = new SvMetaSlot( rSlot ); break; } } @@ -488,7 +483,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix, if ( m == rBase.GetSlotList().size() ) { OSL_FAIL("Invalid EnumSlot!"); - xEnumSlot = Clone(); + xEnumSlot = new SvMetaSlot( *this ); sal_uLong nValue; if ( rBase.FindId(aSId , &nValue) ) { |