diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-08-28 12:33:22 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-08-28 12:33:22 +0000 |
commit | 0e7da358d3f65a44a53e9d6028793e19a4f1e3f0 (patch) | |
tree | 0efb2fa56ccb7616a110535307bbacb52641a669 /tools/inc | |
parent | 2a0cad125f46c153679fe7da12993bee95938cff (diff) |
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.
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/tools/weakbase.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -104,6 +104,20 @@ inline sal_Bool WeakReference< reference_type >::operator>(const WeakReference<r } template< class reference_type > +inline WeakReference<reference_type>& WeakReference<reference_type>::operator= ( + const WeakReference<reference_type>& rReference) +{ + if (&rReference != this) + { + mpWeakConnection->release(); + + mpWeakConnection = rReference.mpWeakConnection; + mpWeakConnection->acquire(); + } + return *this; +} + +template< class reference_type > inline WeakBase< reference_type >::WeakBase() { mpWeakConnection = 0; |