From c583a2520616c2736cffc389c89a48b159366e6c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 8 Feb 2023 15:36:23 -0500 Subject: Run clang-format.sh Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968 --- gdb/python/py-ref.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'gdb/python/py-ref.h') 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 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 using gdbpy_ref - = gdb::ref_ptr>; +template +using gdbpy_ref = gdb::ref_ptr>; #endif /* PYTHON_PY_REF_H */ -- cgit v1.1