diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index ec383ebce144..20b85118e3e6 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3439,6 +3439,19 @@ SvxBrushItem::SvxBrushItem(const SvxBrushItem& rItem) { } +SvxBrushItem::SvxBrushItem(SvxBrushItem&& rItem) + : SfxPoolItem(std::move(rItem)) + , aColor(std::move(rItem.aColor)) + , nShadingValue(std::move(rItem.nShadingValue)) + , xGraphicObject(std::move(rItem.xGraphicObject)) + , nGraphicTransparency(std::move(rItem.nGraphicTransparency)) + , maStrLink(std::move(rItem.maStrLink)) + , maStrFilter(std::move(rItem.maStrFilter)) + , eGraphicPos(std::move(rItem.eGraphicPos)) + , bLoadAgain(std::move(rItem.bLoadAgain)) +{ +} + SvxBrushItem::~SvxBrushItem() { } @@ -3688,6 +3701,19 @@ SvxBrushItem& SvxBrushItem::operator=(const SvxBrushItem& rItem) return *this; } +SvxBrushItem& SvxBrushItem::operator=(SvxBrushItem&& rItem) +{ + aColor = std::move(rItem.aColor); + nShadingValue = std::move(rItem.nShadingValue); + xGraphicObject = std::move(rItem.xGraphicObject); + nGraphicTransparency = std::move(rItem.nGraphicTransparency); + maStrLink = std::move(rItem.maStrLink); + maStrFilter = std::move(rItem.maStrFilter); + eGraphicPos = std::move(rItem.eGraphicPos); + bLoadAgain = std::move(rItem.bLoadAgain); + return *this; +} + bool SvxBrushItem::operator==( const SfxPoolItem& rAttr ) const { DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" ); |