cid#1371187 Missing move assignment operator

Change-Id: Ib0b51a029adcb0b703aa975b6c5fc02a8b21ed63
This commit is contained in:
Noel Grandin
2016-08-25 14:20:39 +02:00
parent 45d4b2945c
commit 83c0f29341
2 changed files with 11 additions and 0 deletions

View File

@@ -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 )

View File

@@ -50,8 +50,10 @@ namespace comphelper
NamedValueCollection();
NamedValueCollection( const NamedValueCollection& _rCopySource );
NamedValueCollection( NamedValueCollection&& _rCopySource );
NamedValueCollection& operator=( const NamedValueCollection& i_rCopySource );
NamedValueCollection& operator=( NamedValueCollection&& i_rCopySource );
/** constructs a collection
@param _rElements