aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/autodecref.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-12-29 17:05:48 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-12-30 14:58:34 -0200
commitf92949abe5640493b7e89e94ea00f1dedfbd2657 (patch)
tree0bc55dfe01d8d380ed6e5a01d058aa4f230f537e /libshiboken/autodecref.h
parentd99271db59b6776bbba042dcf67b99942d0abf1b (diff)
Add -> operator to AutoDecRef class.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libshiboken/autodecref.h')
-rw-r--r--libshiboken/autodecref.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libshiboken/autodecref.h b/libshiboken/autodecref.h
index 962bd2844..c5c1e9605 100644
--- a/libshiboken/autodecref.h
+++ b/libshiboken/autodecref.h
@@ -61,6 +61,7 @@ public:
PyObject* object() { return m_pyobj; }
operator PyObject*() { return m_pyobj; }
operator bool() const { return m_pyobj; }
+ PyObject* operator->() { return m_pyobj; }
private:
PyObject* m_pyobj;
AutoDecRef(const AutoDecRef&);