diff options
author | Michael Stahl <mst@openoffice.org> | 2010-01-13 17:55:09 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-01-13 17:55:09 +0100 |
commit | bf46dbcd552d7538474af43b82eb16e17e02d0a4 (patch) | |
tree | ac7e8c73413e05498ecc35ed071a9d4d517d8391 /cppuhelper/inc | |
parent | bb94dd8918d401094768173d99ecf5a6efeb6739 (diff) |
swunolocking1: #i108161#: WeakReferenceHelper:
Apple g++ 4.0.1 erroneously believes that it is ambiguous to use
WeakReference<XInterface>::operator=(Reference<XInterface>).
as a workaround, introduce WeakReferenceHelper::clear(), and fix all users.
Diffstat (limited to 'cppuhelper/inc')
-rw-r--r-- | cppuhelper/inc/cppuhelper/weakref.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cppuhelper/inc/cppuhelper/weakref.hxx b/cppuhelper/inc/cppuhelper/weakref.hxx index a4f9f46eabd9..5ed14743a520 100644 --- a/cppuhelper/inc/cppuhelper/weakref.hxx +++ b/cppuhelper/inc/cppuhelper/weakref.hxx @@ -109,6 +109,12 @@ public: inline SAL_CALL operator Reference< XInterface > () const SAL_THROW( () ) { return get(); } + /** Releases this reference. + + @since UDK 3.2.12 + */ + void SAL_CALL clear() SAL_THROW( () ); + protected: /** @internal */ OWeakRefListener * m_pImpl; |