diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-25 14:20:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-29 09:23:46 +0200 |
commit | 83c0f29341a80cc71aac30293543e4ab66ae34e5 (patch) | |
tree | 4b2b037a19d99a5efac5e60eaafdc5d16ce5b2ac /comphelper | |
parent | 45d4b2945cbea49efd5c3d725f3e067bfbd229ba (diff) |
cid#1371187 Missing move assignment operator
Change-Id: Ib0b51a029adcb0b703aa975b6c5fc02a8b21ed63
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/namedvaluecollection.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index 9f14078ad340..53af3a791b21 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -65,6 +65,10 @@ namespace comphelper *this = _rCopySource; } + NamedValueCollection::NamedValueCollection( NamedValueCollection&& _rCopySource ) + :m_pImpl( std::move(_rCopySource.m_pImpl) ) + { + } NamedValueCollection& NamedValueCollection::operator=( const NamedValueCollection& i_rCopySource ) { @@ -72,6 +76,11 @@ namespace comphelper return *this; } + NamedValueCollection& NamedValueCollection::operator=( NamedValueCollection&& i_rCopySource ) + { + m_pImpl = std::move(i_rCopySource.m_pImpl); + return *this; + } NamedValueCollection::NamedValueCollection( const Any& _rElements ) :m_pImpl( new NamedValueCollection_Impl ) |