diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 09:51:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-08 08:41:38 +0000 |
commit | 1a743fd8a27d063525e3567619a2971770c61574 (patch) | |
tree | 0bbb838762285342beab2711e867ff695a05a7b7 /idl/source | |
parent | tdf#88023: Only warn about unavailable JRE once (diff) | |
download | core-1a743fd8a27d063525e3567619a2971770c61574.tar.gz core-1a743fd8a27d063525e3567619a2971770c61574.zip |
loplugin:expandablemethods in hwpfilter..linguistic
Change-Id: I62ae20ab4a47b3b7e2b0d503cedcad3319cc9c85
Reviewed-on: https://gerrit.libreoffice.org/30683
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/slot.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
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) ) { |