From 3d8154789bca1f5a0901859e23bf5e4b458af1ff Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Aug 2016 13:14:46 +0200 Subject: [PATCH] cid#1371277 Missing move assignment operator Change-Id: Ic737733f5951d5b21660a12a7a01202bd9bc303c --- drawinglayer/source/attribute/sdrlightingattribute3d.cxx | 5 +++++ include/drawinglayer/attribute/sdrlightingattribute3d.hxx | 2 ++ 2 files changed, 7 insertions(+) diff --git a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx index d50094300f3b..67f5037e65d8 100644 --- a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx @@ -84,6 +84,11 @@ namespace drawinglayer { } + SdrLightingAttribute::SdrLightingAttribute(SdrLightingAttribute&& rCandidate) + : mpSdrLightingAttribute(std::move(rCandidate.mpSdrLightingAttribute)) + { + } + SdrLightingAttribute::~SdrLightingAttribute() { } diff --git a/include/drawinglayer/attribute/sdrlightingattribute3d.hxx b/include/drawinglayer/attribute/sdrlightingattribute3d.hxx index 70e0e450b210..5fa40db3b524 100644 --- a/include/drawinglayer/attribute/sdrlightingattribute3d.hxx +++ b/include/drawinglayer/attribute/sdrlightingattribute3d.hxx @@ -58,7 +58,9 @@ namespace drawinglayer const ::std::vector< Sdr3DLightAttribute >& rLightVector); SdrLightingAttribute(); SdrLightingAttribute(const SdrLightingAttribute& rCandidate); + SdrLightingAttribute(SdrLightingAttribute&& rCandidate); SdrLightingAttribute& operator=(const SdrLightingAttribute& rCandidate); + SdrLightingAttribute& operator=(SdrLightingAttribute&& rCandidate); ~SdrLightingAttribute(); // checks if the incarnation is default constructed