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