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

cid#1371256 Missing move assignment operator

Change-Id: Idf50c8f56e1d409fbd1306ee0fec20360bf99c86
üst 68697779
......@@ -80,7 +80,9 @@ namespace drawinglayer
SdrTextAttribute();
SdrTextAttribute(const SdrTextAttribute& rCandidate);
SdrTextAttribute(SdrTextAttribute&& rCandidate);
SdrTextAttribute& operator=(const SdrTextAttribute& rCandidate);
SdrTextAttribute& operator=(SdrTextAttribute&& rCandidate);
~SdrTextAttribute();
// checks if the incarnation is default constructed
......
......@@ -282,6 +282,11 @@ namespace drawinglayer
{
}
SdrTextAttribute::SdrTextAttribute(SdrTextAttribute&& rCandidate)
: mpSdrTextAttribute(std::move(rCandidate.mpSdrTextAttribute))
{
}
SdrTextAttribute::~SdrTextAttribute()
{
}
......@@ -297,6 +302,12 @@ namespace drawinglayer
return *this;
}
SdrTextAttribute& SdrTextAttribute::operator=(SdrTextAttribute&& rCandidate)
{
mpSdrTextAttribute = std::move(rCandidate.mpSdrTextAttribute);
return *this;
}
bool SdrTextAttribute::operator==(const SdrTextAttribute& rCandidate) const
{
// tdf#87509 default attr is always != non-default attr, even with same values
......
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