From a0ebc6f898992dbc0da9f252911da867dfdfd741 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 9 Nov 2019 08:47:48 +0200 Subject: missing move operator= Change-Id: Id184cbc88f41eda78c58898693285e185298a1e4 Reviewed-on: https://gerrit.libreoffice.org/82343 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/cppuhelper/weakref.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cppuhelper') 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 -- cgit