summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-11-11 12:34:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-11 17:03:11 +0000
commit5abd8d2eeeaecfcd18e2c61fe6d5a674a1826b69 (patch)
treefbd3e6d74037c7caf45ee799bc6a739ff0b72e12 /editeng
parentf731296e0ce7c4a0be77fdcba0c2578147211dfa (diff)
coverity#1371263 Missing move assignment operator
Change-Id: Ifb4117afac4aa86893e674a581e1a7bb80925ee3
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx26
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" );