diff options
Diffstat (limited to 'libshiboken/autodecref.h')
-rw-r--r-- | libshiboken/autodecref.h | 12 |
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&); |