Convert location_spec_to_string to a method
This converts location_spec_to_string to a method of location_spec, simplifying the code using it, as it no longer has to use std::unique_ptr::get(). Change-Id: I621bdad8ea084470a2724163f614578caf8f2dd5
This commit is contained in:
parent
7464aeaab4
commit
709438c75a
8 changed files with 27 additions and 49 deletions
|
@ -412,7 +412,7 @@ bppy_get_location (PyObject *self, void *closure)
|
|||
&& obj->bp->type != bp_hardware_breakpoint)
|
||||
Py_RETURN_NONE;
|
||||
|
||||
const char *str = location_spec_to_string (obj->bp->locspec.get ());
|
||||
const char *str = obj->bp->locspec->to_string ();
|
||||
if (str == nullptr)
|
||||
str = "";
|
||||
return host_string_to_python_string (str).release ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue