diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-28 22:01:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-30 19:26:41 +0100 |
commit | 181c6a88866511384b291de0701e0e0c9289703d (patch) | |
tree | c4e58f8314c56f206cdaa44701f8376159580e3d /svx | |
parent | 606232e450888b12e24da9c3e56c91333a1bb6d3 (diff) |
coverity#1371300 Missing move assignment operator
Change-Id: I4add8d1f0e1f007d247d4fe9f6fa2048b792c1b0
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx | 1 | ||||
-rw-r--r-- | svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx b/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx index e2e4aaac60c7..924967a1be31 100644 --- a/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx +++ b/svx/inc/sdr/attribute/sdrformtextoutlineattribute.hxx @@ -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 diff --git a/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx b/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx index 1126013c3a7a..6e6211dce2f0 100644 --- a/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextoutlineattribute.cxx @@ -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 |