Tom Tromey
7c1b5f3db7
Introduce ref_ptr::new_reference
...
I noticed a common pattern with gdb::ref_ptr, where callers would
"incref" and then create a new wrapper object, like:
Py_INCREF (obj);
gdbpy_ref<> ref (obj);
The ref_ptr constructor intentionally does not acquire a new
reference, but it seemed to me that it would be reasonable to add a
static member function that does so.
In this patch I chose to call the function "new_reference". I
considered "acquire_reference" as well, but "new" seemed less
ambiguous than "acquire" to me.
ChangeLog
2018-04-30 Tom Tromey <tom@tromey.com>
* common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
method.
2018-04-30 11:33:11 -06:00
..
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-09 15:47:12 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-07 13:19:12 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-02-28 11:34:39 -05:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-02-28 11:37:10 -05:00
2018-02-28 11:37:10 -05:00
2018-02-19 09:37:24 +00:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-30 11:33:11 -06:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-09 14:20:46 -04:00
2018-04-09 14:20:46 -04:00
2018-01-02 07:38:06 +04:00
2018-02-28 11:34:39 -05:00
2018-02-28 11:34:39 -05:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-03-02 23:22:10 -05:00
2018-04-09 15:40:45 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-03-19 09:37:49 -06:00
2018-01-02 07:38:06 +04:00
2018-03-02 07:32:31 -05:00
2018-02-28 11:37:10 -05:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-03-22 00:27:19 -04:00
2018-03-22 00:27:19 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-02-09 14:03:18 +01:00
2018-02-09 14:03:19 +01:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-15 20:03:20 +00:00
2018-01-05 18:26:18 +00:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-18 20:44:39 +01:00
2018-04-18 20:49:37 +01:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-03-08 18:04:46 -05:00
2018-03-08 18:04:46 -05:00