[Libreoffice-commits] core.git: drawinglayer/source include/drawinglayer
Noel Grandin
noel at peralex.com
Thu Aug 25 09:42:12 UTC 2016
drawinglayer/source/attribute/strokeattribute.cxx | 6 ++++++
include/drawinglayer/attribute/strokeattribute.hxx | 1 +
2 files changed, 7 insertions(+)
New commits:
commit 19828cc01ff1e3421907f77863a464e87c70f57c
Author: Noel Grandin <noel at peralex.com>
Date: Thu Aug 25 11:41:01 2016 +0200
cid#1371315 Missing move assignment operator
Change-Id: I9da0ffe856a0a40094c1c553bb2c5e05d8d3ef5d
diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx
index 932be14c..c5b2d8d 100644
--- a/drawinglayer/source/attribute/strokeattribute.cxx
+++ b/drawinglayer/source/attribute/strokeattribute.cxx
@@ -107,6 +107,12 @@ namespace drawinglayer
return *this;
}
+ StrokeAttribute& StrokeAttribute::operator=(StrokeAttribute&& rCandidate)
+ {
+ mpStrokeAttribute = rCandidate.mpStrokeAttribute;
+ return *this;
+ }
+
bool StrokeAttribute::operator==(const StrokeAttribute& rCandidate) const
{
// tdf#87509 default attr is always != non-default attr, even with same values
diff --git a/include/drawinglayer/attribute/strokeattribute.hxx b/include/drawinglayer/attribute/strokeattribute.hxx
index 69576ed..4ca3955 100644
--- a/include/drawinglayer/attribute/strokeattribute.hxx
+++ b/include/drawinglayer/attribute/strokeattribute.hxx
@@ -52,6 +52,7 @@ namespace drawinglayer
StrokeAttribute();
StrokeAttribute(const StrokeAttribute& rCandidate);
StrokeAttribute& operator=(const StrokeAttribute& rCandidate);
+ StrokeAttribute& operator=(StrokeAttribute&& rCandidate);
~StrokeAttribute();
// checks if the incarnation is default constructed
More information about the Libreoffice-commits
mailing list