From 0e7da358d3f65a44a53e9d6028793e19a4f1e3f0 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 28 Aug 2007 12:33:22 +0000 Subject: INTEGRATION: CWS navorder (1.3.188); FILE MERGED 2007/07/25 09:31:15 af 1.3.188.2: #i68097# Added missing template declarations. 2007/07/05 09:50:02 af 1.3.188.1: #i68097# Added missing assignment operator. --- tools/inc/tools/weakbase.hxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/inc') diff --git a/tools/inc/tools/weakbase.hxx b/tools/inc/tools/weakbase.hxx index ff3b1813005c..ef1c763388e4 100644 --- a/tools/inc/tools/weakbase.hxx +++ b/tools/inc/tools/weakbase.hxx @@ -103,6 +103,20 @@ inline sal_Bool WeakReference< reference_type >::operator>(const WeakReferencempReference > handle.mpWeakConnection->mpReference; } +template< class reference_type > +inline WeakReference& WeakReference::operator= ( + const WeakReference& rReference) +{ + if (&rReference != this) + { + mpWeakConnection->release(); + + mpWeakConnection = rReference.mpWeakConnection; + mpWeakConnection->acquire(); + } + return *this; +} + template< class reference_type > inline WeakBase< reference_type >::WeakBase() { -- cgit