summaryrefslogtreecommitdiff
path: root/drawinglayer/source/attribute/sdrlineattribute.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-25 11:53:50 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 12:05:59 +0200
commit9fda8f5ad61c11d72718a50a175b23cb43bfa9ab (patch)
treef57fed299093905446f53b03bac6db40d169be4f /drawinglayer/source/attribute/sdrlineattribute.cxx
parenta95ef3313387b8d30c5b60c397bb839afd7d60dc (diff)
fix move operator= and add move constructors
followup to: 19828cc0 "cid#1371315 Missing move assignment operator" and 0e748707 "cid#1371320 Missing move assignment operator" Change-Id: Id2479fef41cf8d98eef9246f3a86e6c9289c3d58
Diffstat (limited to 'drawinglayer/source/attribute/sdrlineattribute.cxx')
-rw-r--r--drawinglayer/source/attribute/sdrlineattribute.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx
index 8541aa4c2801..21da3a249aed 100644
--- a/drawinglayer/source/attribute/sdrlineattribute.cxx
+++ b/drawinglayer/source/attribute/sdrlineattribute.cxx
@@ -124,10 +124,7 @@ namespace drawinglayer
{
}
- SdrLineAttribute::SdrLineAttribute(SdrLineAttribute&& rCandidate)
- : mpSdrLineAttribute(rCandidate.mpSdrLineAttribute)
- {
- }
+ SdrLineAttribute::SdrLineAttribute(SdrLineAttribute&& rCandidate) = default;
SdrLineAttribute::~SdrLineAttribute()
{
@@ -144,11 +141,7 @@ namespace drawinglayer
return *this;
}
- SdrLineAttribute& SdrLineAttribute::operator=(SdrLineAttribute&& rCandidate)
- {
- mpSdrLineAttribute = rCandidate.mpSdrLineAttribute;
- return *this;
- }
+ SdrLineAttribute& SdrLineAttribute::operator=(SdrLineAttribute&& rCandidate) = default;
bool SdrLineAttribute::operator==(const SdrLineAttribute& rCandidate) const
{