summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-08-28 12:33:22 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-08-28 12:33:22 +0000
commit0e7da358d3f65a44a53e9d6028793e19a4f1e3f0 (patch)
tree0efb2fa56ccb7616a110535307bbacb52641a669 /tools
parentINTEGRATION: CWS navorder (1.3.146); FILE MERGED (diff)
downloadcore-0e7da358d3f65a44a53e9d6028793e19a4f1e3f0.tar.gz
core-0e7da358d3f65a44a53e9d6028793e19a4f1e3f0.zip
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')
-rw-r--r--tools/inc/tools/weakbase.hxx14
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;