diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-08-11 11:39:43 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2023-08-23 09:50:31 +0100 |
commit | e200b179ce7d2b03e903a2da1e8d1a6739cdca1c (patch) | |
tree | d2d7b7d423dc8442923e5b9e74b15b146ccb158a /gdb/mi/mi-interp.c | |
parent | 0b72cde372f4ac58d3027e94ac48672a5698d80a (diff) | |
download | gdb-e200b179ce7d2b03e903a2da1e8d1a6739cdca1c.zip gdb-e200b179ce7d2b03e903a2da1e8d1a6739cdca1c.tar.gz gdb-e200b179ce7d2b03e903a2da1e8d1a6739cdca1c.tar.bz2 |
gdb: have mi_out_new return std::unique_ptr
Have the mi_out_new function return a std::unique_ptr instead of a raw
pointer. Update the two uses of mi_out_new.
There should be no user visible changes after this commit.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/mi/mi-interp.c')
-rw-r--r-- | gdb/mi/mi-interp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 0e51c88..a7fcf17 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -95,7 +95,7 @@ mi_interp::init (bool top_level) mi->log = mi->err; mi->targ = new mi_console_file (mi->raw_stdout, "@", '"'); mi->event_channel = new mi_console_file (mi->raw_stdout, "=", 0); - mi->mi_uiout = mi_out_new (name ()); + mi->mi_uiout = mi_out_new (name ()).release (); gdb_assert (mi->mi_uiout != nullptr); mi->cli_uiout = new cli_ui_out (mi->out); |