diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-02 13:43:46 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-09-14 17:39:10 (GMT) |
commit | e4157821fc159371ff7bd8b6b1b0a889c81e72a2 (patch) | |
tree | 3981927049f3813e90b1789c9352b47504f31abe /src/FbTk | |
parent | 0f85ade9bee91701533137deaea291ad023fd824 (diff) | |
download | fluxbox_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.hh | 1 |
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 | ||