summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-25 11:43:30 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 11:51:03 +0200
commit065913d8aa830480961939aeec3c484c0b055f35 (patch)
tree7b862186835777d1c237e8bb3c1bf731ab5b321b /drawinglayer
parent19828cc01ff1e3421907f77863a464e87c70f57c (diff)
cid#1371309 Missing move assignment operator
Change-Id: Ic00f39793f0341820ccce912f4350644a90104c5
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/attribute/sdrlineattribute.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx
index aac95d7a4644..8541aa4c2801 100644
--- a/drawinglayer/source/attribute/sdrlineattribute.cxx
+++ b/drawinglayer/source/attribute/sdrlineattribute.cxx
@@ -124,6 +124,11 @@ namespace drawinglayer
{
}
+ SdrLineAttribute::SdrLineAttribute(SdrLineAttribute&& rCandidate)
+ : mpSdrLineAttribute(rCandidate.mpSdrLineAttribute)
+ {
+ }
+
SdrLineAttribute::~SdrLineAttribute()
{
}
@@ -139,6 +144,12 @@ namespace drawinglayer
return *this;
}
+ SdrLineAttribute& SdrLineAttribute::operator=(SdrLineAttribute&& rCandidate)
+ {
+ mpSdrLineAttribute = rCandidate.mpSdrLineAttribute;
+ return *this;
+ }
+
bool SdrLineAttribute::operator==(const SdrLineAttribute& rCandidate) const
{
// tdf#87509 default attr is always != non-default attr, even with same values