aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-29 22:35:58 -0600
committerTom Tromey <tom@tromey.com>2017-10-03 05:33:47 -0600
commit895b8f306b1f54d85915ca0d24368f40b2e42554 (patch)
tree4f7e798e0c0cd0bab6dbe2adb72bdd06d4efaa8f /gdb/event-top.c
parent0efef6405493c0bf438486819bec70b304276e16 (diff)
downloadgdb-895b8f306b1f54d85915ca0d24368f40b2e42554.zip
gdb-895b8f306b1f54d85915ca0d24368f40b2e42554.tar.gz
gdb-895b8f306b1f54d85915ca0d24368f40b2e42554.tar.bz2
Remove make_delete_ui_cleanup
This removes new_ui and delete_ui in favor of ordinary 'new' and 'delete', and then removes make_delete_ui_cleanup in favor of std::unique_ptr. 2017-10-03 Tom Tromey <tom@tromey.com> * event-top.c (stdin_event_handler): Update. * main.c (captured_main_1): Update. * top.h (make_delete_ui_cleanup): Remove. (struct ui): Add constructor and destructor. (new_ui, delete_ui): Remove. * top.c (make_delete_ui_cleanup): Remove. (new_ui_command): Use std::unique_ptr. (delete_ui_cleanup): Remove. (ui::ui): Rename from new_ui. Update. (free_ui): Remove. (ui::~ui): Rename from delete_ui. Update.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 54fe471..43e2a27 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -487,7 +487,7 @@ stdin_event_handler (int error, gdb_client_data client_data)
else
{
/* Simply delete the UI. */
- delete_ui (ui);
+ delete ui;
}
}
else