diff options
-rw-r--r-- | o3tl/qa/cow_wrapper_clients.cxx | 24 | ||||
-rw-r--r-- | o3tl/qa/cow_wrapper_clients.hxx | 4 |
2 files changed, 28 insertions, 0 deletions
diff --git a/o3tl/qa/cow_wrapper_clients.cxx b/o3tl/qa/cow_wrapper_clients.cxx index 959bddf93413..1ede35a2805d 100644 --- a/o3tl/qa/cow_wrapper_clients.cxx +++ b/o3tl/qa/cow_wrapper_clients.cxx @@ -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 ); diff --git a/o3tl/qa/cow_wrapper_clients.hxx b/o3tl/qa/cow_wrapper_clients.hxx index 48b745a93564..138f496a773e 100644 --- a/o3tl/qa/cow_wrapper_clients.hxx +++ b/o3tl/qa/cow_wrapper_clients.hxx @@ -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; |