summaryrefslogtreecommitdiff
path: root/svx/inc/sxoneitm.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-23 21:06:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-23 21:21:38 +0000
commit67a6bfb1f1cc255a1850795469f7f2aa0cfdb6d0 (patch)
treed1128bf4349cea9961cc02b9effa6674338e872e /svx/inc/sxoneitm.hxx
parenteb0da37545a5c56017cf7fc73e71acb0ff078036 (diff)
crashtesting: fdo30583-1 hits the Clone ugly tree all the way down
Change-Id: I091c3a61a28275e090975016908e3b25c7506fba
Diffstat (limited to 'svx/inc/sxoneitm.hxx')
-rw-r--r--svx/inc/sxoneitm.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/svx/inc/sxoneitm.hxx b/svx/inc/sxoneitm.hxx
index 4610e90840ae..c1ae53d51615 100644
--- a/svx/inc/sxoneitm.hxx
+++ b/svx/inc/sxoneitm.hxx
@@ -26,18 +26,30 @@ class SdrOnePositionXItem: public SdrMetricItem {
public:
SdrOnePositionXItem(long nPosX=0): SdrMetricItem(SDRATTR_ONEPOSITIONX,nPosX) {}
SdrOnePositionXItem(SvStream& rIn): SdrMetricItem(SDRATTR_ONEPOSITIONX,rIn) {}
+ virtual SfxPoolItem* Clone(SfxItemPool*) const override
+ {
+ return new SdrOnePositionXItem(*this);
+ }
};
class SdrOnePositionYItem: public SdrMetricItem {
public:
SdrOnePositionYItem(long nPosY=0): SdrMetricItem(SDRATTR_ONEPOSITIONY,nPosY) {}
SdrOnePositionYItem(SvStream& rIn): SdrMetricItem(SDRATTR_ONEPOSITIONY,rIn) {}
+ virtual SfxPoolItem* Clone(SfxItemPool*) const override
+ {
+ return new SdrOnePositionYItem(*this);
+ }
};
class SdrOneSizeWidthItem: public SdrMetricItem {
public:
SdrOneSizeWidthItem(long nWdt=0): SdrMetricItem(SDRATTR_ONESIZEWIDTH,nWdt) {}
SdrOneSizeWidthItem(SvStream& rIn): SdrMetricItem(SDRATTR_ONESIZEWIDTH,rIn) {}
+ virtual SfxPoolItem* Clone(SfxItemPool*) const override
+ {
+ return new SdrOneSizeWidthItem(*this);
+ }
};
@@ -47,6 +59,10 @@ class SdrOneSizeHeightItem: public SdrMetricItem {
public:
SdrOneSizeHeightItem(long nHgt=0): SdrMetricItem(SDRATTR_ONESIZEHEIGHT,nHgt) {}
SdrOneSizeHeightItem(SvStream& rIn): SdrMetricItem(SDRATTR_ONESIZEHEIGHT,rIn) {}
+ virtual SfxPoolItem* Clone(SfxItemPool*) const override
+ {
+ return new SdrOneSizeHeightItem(*this);
+ }
};
#endif