diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 14:48:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-29 09:23:46 +0200 |
commit | 8898f0e128d10b135a7388ec113b35949f326811 (patch) | |
tree | b3f05b6f706c5d85c910a37db87bd89ebe99f5c4 | |
parent | 2b8c88b475455d2f4e66f8a632d96f42d1e223ca (diff) |
cid#1371206 Missing move assignment operator
Change-Id: Ide97adea0bc0611dac676df923796d031d6752e5
-rw-r--r-- | include/svx/dataaccessdescriptor.hxx | 2 | ||||
-rw-r--r-- | svx/source/form/dataaccessdescriptor.cxx | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/svx/dataaccessdescriptor.hxx b/include/svx/dataaccessdescriptor.hxx index 802e58c96d2f..9449d8fbd051 100644 --- a/include/svx/dataaccessdescriptor.hxx +++ b/include/svx/dataaccessdescriptor.hxx @@ -64,6 +64,7 @@ namespace svx public: ODataAccessDescriptor(); ODataAccessDescriptor( const ODataAccessDescriptor& _rSource ); + ODataAccessDescriptor( ODataAccessDescriptor&& _rSource ); ODataAccessDescriptor( const css::uno::Reference< css::beans::XPropertySet >& _rValues ); ODataAccessDescriptor( const css::uno::Sequence< css::beans::PropertyValue >& _rValues ); @@ -71,6 +72,7 @@ namespace svx ODataAccessDescriptor( const css::uno::Any& _rValues ); ODataAccessDescriptor& operator=(const ODataAccessDescriptor& _rSource); + ODataAccessDescriptor& operator=(ODataAccessDescriptor&& _rSource); ~ODataAccessDescriptor(); diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx index 3e6a6132557d..3004f300d8e3 100644 --- a/svx/source/form/dataaccessdescriptor.cxx +++ b/svx/source/form/dataaccessdescriptor.cxx @@ -270,12 +270,23 @@ namespace svx { } + ODataAccessDescriptor::ODataAccessDescriptor( ODataAccessDescriptor&& _rSource ) + :m_pImpl(std::move(_rSource.m_pImpl)) + { + } + ODataAccessDescriptor& ODataAccessDescriptor::operator=(const ODataAccessDescriptor& _rSource) { m_pImpl.reset(new ODADescriptorImpl(*_rSource.m_pImpl)); return *this; } + ODataAccessDescriptor& ODataAccessDescriptor::operator=(ODataAccessDescriptor&& _rSource) + { + m_pImpl = std::move(_rSource.m_pImpl); + return *this; + } + ODataAccessDescriptor::ODataAccessDescriptor( const Reference< XPropertySet >& _rValues ) :m_pImpl(new ODADescriptorImpl) { |