summaryrefslogtreecommitdiff
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
parent19828cc01ff1e3421907f77863a464e87c70f57c (diff)
cid#1371309 Missing move assignment operator
Change-Id: Ic00f39793f0341820ccce912f4350644a90104c5
-rw-r--r--drawinglayer/source/attribute/sdrlineattribute.cxx11
-rw-r--r--include/drawinglayer/attribute/sdrlineattribute.hxx2
2 files changed, 13 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
diff --git a/include/drawinglayer/attribute/sdrlineattribute.hxx b/include/drawinglayer/attribute/sdrlineattribute.hxx
index af1e1561f4f9..f57289da0c69 100644
--- a/include/drawinglayer/attribute/sdrlineattribute.hxx
+++ b/include/drawinglayer/attribute/sdrlineattribute.hxx
@@ -62,7 +62,9 @@ namespace drawinglayer
double fFullDotDashLen);
SdrLineAttribute();
SdrLineAttribute(const SdrLineAttribute& rCandidate);
+ SdrLineAttribute(SdrLineAttribute&& rCandidate);
SdrLineAttribute& operator=(const SdrLineAttribute& rCandidate);
+ SdrLineAttribute& operator=(SdrLineAttribute&& rCandidate);
~SdrLineAttribute();
// checks if the incarnation is default constructed