diff options
-rw-r--r-- | include/svx/sdr/attribute/sdrtextattribute.hxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/attribute/sdrtextattribute.cxx | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/svx/sdr/attribute/sdrtextattribute.hxx b/include/svx/sdr/attribute/sdrtextattribute.hxx index efcb9524bf98..8aaaaf02989c 100644 --- a/include/svx/sdr/attribute/sdrtextattribute.hxx +++ b/include/svx/sdr/attribute/sdrtextattribute.hxx @@ -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 diff --git a/svx/source/sdr/attribute/sdrtextattribute.cxx b/svx/source/sdr/attribute/sdrtextattribute.cxx index 76f47517c365..7b9c5daf159a 100644 --- a/svx/source/sdr/attribute/sdrtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrtextattribute.cxx @@ -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 |