diff options
Diffstat (limited to 'gdb/python/py-ref.h')
-rw-r--r-- | gdb/python/py-ref.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gdb/python/py-ref.h b/gdb/python/py-ref.h index 6283af7..46e527c 100644 --- a/gdb/python/py-ref.h +++ b/gdb/python/py-ref.h @@ -26,20 +26,14 @@ template<typename T> struct gdbpy_ref_policy { - static void incref (T *ptr) - { - Py_INCREF (ptr); - } - - static void decref (T *ptr) - { - Py_DECREF (ptr); - } + static void incref (T *ptr) { Py_INCREF (ptr); } + + static void decref (T *ptr) { Py_DECREF (ptr); } }; /* A gdb::ref_ptr that has been specialized for Python objects or their "subclasses". */ -template<typename T = PyObject> using gdbpy_ref - = gdb::ref_ptr<T, gdbpy_ref_policy<T>>; +template<typename T = PyObject> +using gdbpy_ref = gdb::ref_ptr<T, gdbpy_ref_policy<T>>; #endif /* PYTHON_PY_REF_H */ |