From 9fda8f5ad61c11d72718a50a175b23cb43bfa9ab Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Aug 2016 11:53:50 +0200 Subject: fix move operator= and add move constructors followup to: 19828cc0 "cid#1371315 Missing move assignment operator" and 0e748707 "cid#1371320 Missing move assignment operator" Change-Id: Id2479fef41cf8d98eef9246f3a86e6c9289c3d58 --- include/connectivity/FValue.hxx | 11 +++++++++++ include/drawinglayer/attribute/strokeattribute.hxx | 1 + 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx index 3964f3a1be3f..aeac0c105371 100644 --- a/include/connectivity/FValue.hxx +++ b/include/connectivity/FValue.hxx @@ -98,6 +98,17 @@ namespace connectivity operator=(_rRH); } + ORowSetValue(ORowSetValue&& _rRH) + :m_eTypeKind(css::sdbc::DataType::VARCHAR) + ,m_bNull(true) + ,m_bBound(true) + ,m_bModified(false) + ,m_bSigned(true) + { + m_aValue.m_pString = nullptr; + operator=(_rRH); + } + ORowSetValue(const OUString& _rRH) :m_eTypeKind(css::sdbc::DataType::VARCHAR) ,m_bNull(true) diff --git a/include/drawinglayer/attribute/strokeattribute.hxx b/include/drawinglayer/attribute/strokeattribute.hxx index 4ca39552d9ec..5404158b661c 100644 --- a/include/drawinglayer/attribute/strokeattribute.hxx +++ b/include/drawinglayer/attribute/strokeattribute.hxx @@ -51,6 +51,7 @@ namespace drawinglayer double fFullDotDashLen = 0.0); StrokeAttribute(); StrokeAttribute(const StrokeAttribute& rCandidate); + StrokeAttribute(StrokeAttribute&& rCandidate); StrokeAttribute& operator=(const StrokeAttribute& rCandidate); StrokeAttribute& operator=(StrokeAttribute&& rCandidate); ~StrokeAttribute(); -- cgit