diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-09-19 12:40:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-09-19 12:40:51 +0200 |
commit | 4f86b7a86cae630c19f6f0d1b4d6672c25e2eb3c (patch) | |
tree | 674da2fa2d8915d362707f4f5ee4f9691d7cc550 /include/cppuhelper | |
parent | 2d31990ad0806e74f92841fb8f87db101e1a8fc3 (diff) |
cid#1371142: Move semantics for css::uno::WeakReferenceHelper
Change-Id: I442b2d8061bd7d50cbf832b345a7a63461e26224
Diffstat (limited to 'include/cppuhelper')
-rw-r--r-- | include/cppuhelper/weakref.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cppuhelper/weakref.hxx b/include/cppuhelper/weakref.hxx index 11095b700362..250bb8154c1c 100644 --- a/include/cppuhelper/weakref.hxx +++ b/include/cppuhelper/weakref.hxx @@ -63,6 +63,11 @@ public: */ WeakReferenceHelper( const WeakReferenceHelper & rWeakRef ); +#if defined LIBO_INTERNAL_ONLY + WeakReferenceHelper(WeakReferenceHelper && other): m_pImpl(other.m_pImpl) + { other.m_pImpl = nullptr; } +#endif + /** Initialize this reference with the hard interface reference xInt. If the implementation behind xInt does not support XWeak or xInt is null then this reference will be null. @@ -80,6 +85,10 @@ public: */ WeakReferenceHelper & SAL_CALL operator = ( const WeakReferenceHelper & rWeakRef ); +#if defined LIBO_INTERNAL_ONLY + WeakReferenceHelper & operator =(WeakReferenceHelper && other); +#endif + /** Releases this reference and takes over hard reference xInt. If the implementation behind xInt does not support XWeak or XInt is null, then this reference is null. |