Kaydet (Commit) 877dfa37 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1371288 Missing move assignment operator

Change-Id: I5181c76f558e1806de01f21422c715cc93f3cb3d
üst 37ffcb1c
...@@ -113,6 +113,11 @@ namespace drawinglayer ...@@ -113,6 +113,11 @@ namespace drawinglayer
{ {
} }
FillHatchAttribute::FillHatchAttribute(FillHatchAttribute&& rCandidate)
: mpFillHatchAttribute(std::move(rCandidate.mpFillHatchAttribute))
{
}
FillHatchAttribute::~FillHatchAttribute() FillHatchAttribute::~FillHatchAttribute()
{ {
} }
...@@ -128,6 +133,12 @@ namespace drawinglayer ...@@ -128,6 +133,12 @@ namespace drawinglayer
return *this; return *this;
} }
FillHatchAttribute& FillHatchAttribute::operator=(FillHatchAttribute&& rCandidate)
{
mpFillHatchAttribute = std::move(rCandidate.mpFillHatchAttribute);
return *this;
}
bool FillHatchAttribute::operator==(const FillHatchAttribute& rCandidate) const bool FillHatchAttribute::operator==(const FillHatchAttribute& rCandidate) const
{ {
// tdf#87509 default attr is always != non-default attr, even with same values // tdf#87509 default attr is always != non-default attr, even with same values
......
...@@ -72,7 +72,9 @@ namespace drawinglayer ...@@ -72,7 +72,9 @@ namespace drawinglayer
bool bFillBackground); bool bFillBackground);
FillHatchAttribute(); FillHatchAttribute();
FillHatchAttribute(const FillHatchAttribute& rCandidate); FillHatchAttribute(const FillHatchAttribute& rCandidate);
FillHatchAttribute(FillHatchAttribute&& rCandidate);
FillHatchAttribute& operator=(const FillHatchAttribute& rCandidate); FillHatchAttribute& operator=(const FillHatchAttribute& rCandidate);
FillHatchAttribute& operator=(FillHatchAttribute&& rCandidate);
~FillHatchAttribute(); ~FillHatchAttribute();
// checks if the incarnation is default constructed // checks if the incarnation is default constructed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment