summaryrefslogtreecommitdiff
path: root/include/tools/ref.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/ref.hxx')
-rw-r--r--include/tools/ref.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 1d5a37ad2c67..98740f0747cf 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -229,17 +229,14 @@ public: \
inline ClassName##WeakRef( ) {} \
inline ClassName##WeakRef( ClassName* pObj ) { \
if( pObj ) _xHdl = pObj->GetHdl(); } \
- inline void Clear() { _xHdl.Clear(); } \
inline ClassName##WeakRef& operator = ( ClassName * pObj ) { \
_xHdl = pObj ? pObj->GetHdl() : 0; return *this; } \
inline bool Is() const { \
return _xHdl.Is() && _xHdl->GetObj(); } \
- inline ClassName * operator & () const { \
- return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
inline ClassName * operator -> () const { \
return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
- inline ClassName & operator * () const { \
- return *(ClassName*) _xHdl->GetObj(); } \
+ inline ClassName * operator & () const { \
+ return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
inline operator ClassName * () const { \
return (ClassName*) (_xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
};