diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-09 08:47:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-09 17:11:35 +0100 |
commit | a0ebc6f898992dbc0da9f252911da867dfdfd741 (patch) | |
tree | e1bf464bea6ede09053fb02ed6a8b08ae4e9a514 /include/cppuhelper/weakref.hxx | |
parent | 5ddbfea5f9f2c7fca852e2a25c804ad7050d14fa (diff) |
missing move operator=
Change-Id: Id184cbc88f41eda78c58898693285e185298a1e4
Reviewed-on: https://gerrit.libreoffice.org/82343
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/cppuhelper/weakref.hxx')
-rw-r--r-- | include/cppuhelper/weakref.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cppuhelper/weakref.hxx b/include/cppuhelper/weakref.hxx index c681284bac77..8a94145998fa 100644 --- a/include/cppuhelper/weakref.hxx +++ b/include/cppuhelper/weakref.hxx @@ -172,6 +172,12 @@ public: const css::uno::Reference< interface_type > & xInt ) { WeakReferenceHelper::operator=(xInt); return *this; } +#if defined LIBO_INTERNAL_ONLY + WeakReference & SAL_CALL operator = ( + const css::uno::Reference< interface_type > && xInt ) + { WeakReferenceHelper::operator=(std::move(xInt)); return *this; } +#endif + /** Gets a hard reference to the object. @return hard reference or null, if the weakly referenced interface has gone |