Kaydet (Commit) 181c6a88 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1371300 Missing move assignment operator

Change-Id: I4add8d1f0e1f007d247d4fe9f6fa2048b792c1b0
üst 606232e4
......@@ -53,6 +53,7 @@ namespace drawinglayer
SdrFormTextOutlineAttribute();
SdrFormTextOutlineAttribute(const SdrFormTextOutlineAttribute& rCandidate);
SdrFormTextOutlineAttribute& operator=(const SdrFormTextOutlineAttribute& rCandidate);
SdrFormTextOutlineAttribute& operator=(SdrFormTextOutlineAttribute&& rCandidate);
~SdrFormTextOutlineAttribute();
// checks if the incarnation is default constructed
......
......@@ -108,6 +108,12 @@ namespace drawinglayer
return *this;
}
SdrFormTextOutlineAttribute& SdrFormTextOutlineAttribute::operator=(SdrFormTextOutlineAttribute&& rCandidate)
{
mpSdrFormTextOutlineAttribute = std::move(rCandidate.mpSdrFormTextOutlineAttribute);
return *this;
}
bool SdrFormTextOutlineAttribute::operator==(const SdrFormTextOutlineAttribute& 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