coverity#1371178 Missing move assignment operator

Change-Id: Ib7df699269bcacd5dbf64662c47b538aee9235a5
This commit is contained in:
Caolán McNamara 2016-09-12 11:11:39 +01:00
parent 1d7dd96e31
commit 9f3906f1f0
2 changed files with 28 additions and 0 deletions

View File

@ -56,6 +56,11 @@ cow_wrapper_client2::cow_wrapper_client2( const cow_wrapper_client2& rSrc ) :
{
}
cow_wrapper_client2::cow_wrapper_client2( cow_wrapper_client2&& rSrc ) :
maImpl( std::move( rSrc.maImpl ) )
{
}
cow_wrapper_client2& cow_wrapper_client2::operator=( const cow_wrapper_client2& rSrc )
{
maImpl = rSrc.maImpl;
@ -63,6 +68,13 @@ cow_wrapper_client2& cow_wrapper_client2::operator=( const cow_wrapper_client2&
return *this;
}
cow_wrapper_client2& cow_wrapper_client2::operator=( cow_wrapper_client2&& rSrc )
{
maImpl = std::move(rSrc.maImpl);
return *this;
}
void cow_wrapper_client2::modify( int nVal )
{
maImpl->setValue( nVal );
@ -122,6 +134,11 @@ cow_wrapper_client3::cow_wrapper_client3( const cow_wrapper_client3& rSrc ) :
{
}
cow_wrapper_client3::cow_wrapper_client3( cow_wrapper_client3&& rSrc ) :
maImpl( std::move( rSrc.maImpl ) )
{
}
cow_wrapper_client3& cow_wrapper_client3::operator=( const cow_wrapper_client3& rSrc )
{
maImpl = rSrc.maImpl;
@ -129,6 +146,13 @@ cow_wrapper_client3& cow_wrapper_client3::operator=( const cow_wrapper_client3&
return *this;
}
cow_wrapper_client3& cow_wrapper_client3::operator=( cow_wrapper_client3&& rSrc )
{
maImpl = std::move(rSrc.maImpl);
return *this;
}
void cow_wrapper_client3::modify( int nVal )
{
maImpl->setValue( nVal );

View File

@ -69,7 +69,9 @@ public:
~cow_wrapper_client2();
cow_wrapper_client2( const cow_wrapper_client2& );
cow_wrapper_client2( cow_wrapper_client2&& );
cow_wrapper_client2& operator=( const cow_wrapper_client2& );
cow_wrapper_client2& operator=( cow_wrapper_client2&& );
void modify( int nVal );
int queryUnmodified() const;
@ -98,7 +100,9 @@ public:
~cow_wrapper_client3();
cow_wrapper_client3( const cow_wrapper_client3& );
cow_wrapper_client3( cow_wrapper_client3&& );
cow_wrapper_client3& operator=( const cow_wrapper_client3& );
cow_wrapper_client3& operator=( cow_wrapper_client3&& );
void modify( int nVal );
int queryUnmodified() const;