[Libreoffice-commits] core.git: drawinglayer/source include/drawinglayer

Noel Grandin noel at peralex.com
Thu Aug 25 09:52:19 UTC 2016


 drawinglayer/source/attribute/sdrlineattribute.cxx  |   11 +++++++++++
 include/drawinglayer/attribute/sdrlineattribute.hxx |    2 ++
 2 files changed, 13 insertions(+)

New commits:
commit 065913d8aa830480961939aeec3c484c0b055f35
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Aug 25 11:43:30 2016 +0200

    cid#1371309 Missing move assignment operator
    
    Change-Id: Ic00f39793f0341820ccce912f4350644a90104c5

diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx
index aac95d7..8541aa4 100644
--- a/drawinglayer/source/attribute/sdrlineattribute.cxx
+++ b/drawinglayer/source/attribute/sdrlineattribute.cxx
@@ -124,6 +124,11 @@ namespace drawinglayer
         {
         }
 
+        SdrLineAttribute::SdrLineAttribute(SdrLineAttribute&& rCandidate)
+        :   mpSdrLineAttribute(rCandidate.mpSdrLineAttribute)
+        {
+        }
+
         SdrLineAttribute::~SdrLineAttribute()
         {
         }
@@ -139,6 +144,12 @@ namespace drawinglayer
             return *this;
         }
 
+        SdrLineAttribute& SdrLineAttribute::operator=(SdrLineAttribute&& rCandidate)
+        {
+            mpSdrLineAttribute = rCandidate.mpSdrLineAttribute;
+            return *this;
+        }
+
         bool SdrLineAttribute::operator==(const SdrLineAttribute& rCandidate) const
         {
             // tdf#87509 default attr is always != non-default attr, even with same values
diff --git a/include/drawinglayer/attribute/sdrlineattribute.hxx b/include/drawinglayer/attribute/sdrlineattribute.hxx
index af1e156..f57289d 100644
--- a/include/drawinglayer/attribute/sdrlineattribute.hxx
+++ b/include/drawinglayer/attribute/sdrlineattribute.hxx
@@ -62,7 +62,9 @@ namespace drawinglayer
                 double fFullDotDashLen);
             SdrLineAttribute();
             SdrLineAttribute(const SdrLineAttribute& rCandidate);
+            SdrLineAttribute(SdrLineAttribute&& rCandidate);
             SdrLineAttribute& operator=(const SdrLineAttribute& rCandidate);
+            SdrLineAttribute& operator=(SdrLineAttribute&& rCandidate);
             ~SdrLineAttribute();
 
             // checks if the incarnation is default constructed


More information about the Libreoffice-commits mailing list