cid#1371187 Missing move assignment operator
Change-Id: Ib0b51a029adcb0b703aa975b6c5fc02a8b21ed63
This commit is contained in:
@@ -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 )
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user