aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-02 13:43:46 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-09-14 17:39:10 (GMT)
commite4157821fc159371ff7bd8b6b1b0a889c81e72a2 (patch)
tree3981927049f3813e90b1789c9352b47504f31abe /src/FbTk
parent0f85ade9bee91701533137deaea291ad023fd824 (diff)
downloadfluxbox_pavel-e4157821fc159371ff7bd8b6b1b0a889c81e72a2.zip
fluxbox_pavel-e4157821fc159371ff7bd8b6b1b0a889c81e72a2.tar.bz2
Add a reset() function to FbTk::RefCount
to make it's interface more compatible with other smart pointers.
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/RefCount.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FbTk/RefCount.hh b/src/FbTk/RefCount.hh
index fe267e3..8adcc83 100644
--- a/src/FbTk/RefCount.hh
+++ b/src/FbTk/RefCount.hh
@@ -41,6 +41,7 @@ public:
41 Pointer &operator * () const { return *get(); } 41 Pointer &operator * () const { return *get(); }
42 Pointer *operator -> () const { return get(); } 42 Pointer *operator -> () const { return get(); }
43 Pointer *get() const { return m_data; } 43 Pointer *get() const { return m_data; }
44 void reset(Pointer *p) { *this = p; }
44 /// conversion to "bool" 45 /// conversion to "bool"
45 operator bool_type() const { return m_data ? &RefCount::m_data : 0; } 46 operator bool_type() const { return m_data ? &RefCount::m_data : 0; }
46 47