diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 11:53:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 12:05:59 +0200 |
commit | 9fda8f5ad61c11d72718a50a175b23cb43bfa9ab (patch) | |
tree | f57fed299093905446f53b03bac6db40d169be4f /drawinglayer/source/attribute | |
parent | a95ef3313387b8d30c5b60c397bb839afd7d60dc (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')
-rw-r--r-- | drawinglayer/source/attribute/sdrlineattribute.cxx | 11 | ||||
-rw-r--r-- | drawinglayer/source/attribute/strokeattribute.cxx | 8 |
2 files changed, 5 insertions, 14 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 { diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx index c5b2d8dad33e..7c152c8479de 100644 --- a/drawinglayer/source/attribute/strokeattribute.cxx +++ b/drawinglayer/source/attribute/strokeattribute.cxx @@ -92,6 +92,8 @@ namespace drawinglayer { } + StrokeAttribute::StrokeAttribute(StrokeAttribute&& rCandidate) = default; + StrokeAttribute::~StrokeAttribute() { } @@ -107,11 +109,7 @@ namespace drawinglayer return *this; } - StrokeAttribute& StrokeAttribute::operator=(StrokeAttribute&& rCandidate) - { - mpStrokeAttribute = rCandidate.mpStrokeAttribute; - return *this; - } + StrokeAttribute& StrokeAttribute::operator=(StrokeAttribute&& rCandidate) = default; bool StrokeAttribute::operator==(const StrokeAttribute& rCandidate) const { |