From 19828cc01ff1e3421907f77863a464e87c70f57c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Aug 2016 11:41:01 +0200 Subject: [PATCH] cid#1371315 Missing move assignment operator Change-Id: I9da0ffe856a0a40094c1c553bb2c5e05d8d3ef5d --- drawinglayer/source/attribute/strokeattribute.cxx | 6 ++++++ include/drawinglayer/attribute/strokeattribute.hxx | 1 + 2 files changed, 7 insertions(+) diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx index 932be14cc9c8..c5b2d8dad33e 100644 --- a/drawinglayer/source/attribute/strokeattribute.cxx +++ b/drawinglayer/source/attribute/strokeattribute.cxx @@ -107,6 +107,12 @@ namespace drawinglayer return *this; } + StrokeAttribute& StrokeAttribute::operator=(StrokeAttribute&& rCandidate) + { + mpStrokeAttribute = rCandidate.mpStrokeAttribute; + return *this; + } + bool StrokeAttribute::operator==(const StrokeAttribute& rCandidate) const { // tdf#87509 default attr is always != non-default attr, even with same values diff --git a/include/drawinglayer/attribute/strokeattribute.hxx b/include/drawinglayer/attribute/strokeattribute.hxx index 69576edf56d6..4ca39552d9ec 100644 --- a/include/drawinglayer/attribute/strokeattribute.hxx +++ b/include/drawinglayer/attribute/strokeattribute.hxx @@ -52,6 +52,7 @@ namespace drawinglayer StrokeAttribute(); StrokeAttribute(const StrokeAttribute& rCandidate); StrokeAttribute& operator=(const StrokeAttribute& rCandidate); + StrokeAttribute& operator=(StrokeAttribute&& rCandidate); ~StrokeAttribute(); // checks if the incarnation is default constructed