cid#1371315 Missing move assignment operator

Change-Id: I9da0ffe856a0a40094c1c553bb2c5e05d8d3ef5d
This commit is contained in:
Noel Grandin
2016-08-25 11:41:01 +02:00
parent 0e74870782
commit 19828cc01f
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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