aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/autodecref.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-20 14:00:44 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-18 15:21:20 -0300
commitb4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9 (patch)
treee106cc99a076d3c4677b6afb4857fcb36b1351f9 /libshiboken/autodecref.h
parentda5a88b3b53b4769e77eff1d48cc9a2c7152f6c2 (diff)
fixed tests exported symbols.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/autodecref.h')
-rw-r--r--libshiboken/autodecref.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libshiboken/autodecref.h b/libshiboken/autodecref.h
index 9e8bc6619..6c9750dfa 100644
--- a/libshiboken/autodecref.h
+++ b/libshiboken/autodecref.h
@@ -57,13 +57,13 @@ public:
Py_XDECREF(m_pyobj);
}
- bool isNull() const { return m_pyobj == 0; }
+ inline bool isNull() const { return m_pyobj == 0; }
/// Returns the pointer of the Python object being held.
- PyObject* object() { return m_pyobj; }
- operator PyObject*() { return m_pyobj; }
- operator PyTupleObject*() { return reinterpret_cast<PyTupleObject*>(m_pyobj); }
- operator bool() const { return m_pyobj; }
- PyObject* operator->() { return m_pyobj; }
+ inline PyObject* object() { return m_pyobj; }
+ inline operator PyObject*() { return m_pyobj; }
+ inline operator PyTupleObject*() { return reinterpret_cast<PyTupleObject*>(m_pyobj); }
+ inline operator bool() const { return m_pyobj; }
+ inline PyObject* operator->() { return m_pyobj; }
private:
PyObject* m_pyobj;
AutoDecRef(const AutoDecRef&);