summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/tools/weakbase.h3
-rw-r--r--include/tools/weakbase.hxx6
2 files changed, 9 insertions, 0 deletions
diff --git a/include/tools/weakbase.h b/include/tools/weakbase.h
index 458381e47fff..e614efcc4111 100644
--- a/include/tools/weakbase.h
+++ b/include/tools/weakbase.h
@@ -97,6 +97,9 @@ public:
/** returns the pointer to the reference object or null */
inline reference_type * operator->() const;
+ /** returns a ref to the reference object */
+ inline reference_type& operator*() const;
+
/** returns true if this instance references pReferenceObject */
inline bool operator== (const reference_type * pReferenceObject) const;
diff --git a/include/tools/weakbase.hxx b/include/tools/weakbase.hxx
index fa16edd2f147..5c1645e69cf1 100644
--- a/include/tools/weakbase.hxx
+++ b/include/tools/weakbase.hxx
@@ -83,6 +83,12 @@ inline reference_type * WeakReference< reference_type >::operator->() const
}
template< class reference_type >
+inline reference_type& WeakReference< reference_type >::operator*() const
+{
+ return *get();
+}
+
+template< class reference_type >
inline bool WeakReference< reference_type >::operator==(const reference_type * pReferenceObject) const
{
return mpWeakConnection->mpReference == pReferenceObject;