summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 09:51:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 08:41:38 +0000
commit1a743fd8a27d063525e3567619a2971770c61574 (patch)
tree0bbb838762285342beab2711e867ff695a05a7b7 /idl
parentbc57a3e319bccb2d48549a3134d5dcd4336d4533 (diff)
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')
-rw-r--r--idl/inc/slot.hxx3
-rw-r--r--idl/source/objects/slot.cxx9
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) )
{