From 479df22d0b4b0e0393fcf621e7380b38415bcef8 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 18 Nov 2015 20:26:56 +0100 Subject: svx: SdrLayerNameItem etc. missing Clone overrides Change-Id: I26ca8070d9c9607a475267ef8780f9013dfd4dcf --- svx/inc/sxlayitm.hxx | 2 ++ svx/source/svdraw/svdattr.cxx | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'svx') diff --git a/svx/inc/sxlayitm.hxx b/svx/inc/sxlayitm.hxx index 4cbc1084344d..2c2fb6b6c552 100644 --- a/svx/inc/sxlayitm.hxx +++ b/svx/inc/sxlayitm.hxx @@ -29,6 +29,7 @@ public: SdrLayerIdItem(sal_uInt16 nId=0): SfxUInt16Item(SDRATTR_LAYERID,nId) {} SdrLayerIdItem(SvStream& rIn): SfxUInt16Item(SDRATTR_LAYERID,rIn) {} SdrLayerID GetValue() const { return (SdrLayerID)SfxUInt16Item::GetValue(); } + virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; }; class SdrLayerNameItem: public SfxStringItem { @@ -36,6 +37,7 @@ public: SdrLayerNameItem() : SfxStringItem() { SetWhich(SDRATTR_LAYERNAME); } SdrLayerNameItem(const OUString& rStr) : SfxStringItem(SDRATTR_LAYERNAME,rStr) {} SdrLayerNameItem(SvStream& rIn) : SfxStringItem(SDRATTR_LAYERNAME,rIn) {} + virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override; }; #endif diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 05fe6fe6a277..5f0978d4d136 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -2277,5 +2277,14 @@ SfxPoolItem* SdrCustomShapeReplacementURLItem::Clone( SfxItemPool*) const return new SdrCustomShapeReplacementURLItem(*this); } +SfxPoolItem* SdrLayerIdItem::Clone(SfxItemPool* /*pPool*/) const +{ + return new SdrLayerIdItem(*this); +} + +SfxPoolItem* SdrLayerNameItem::Clone(SfxItemPool* /*pPool*/) const +{ + return new SdrLayerNameItem(*this); +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3