aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 09:43:21 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:24 -0600
commite7e11af42dca6482302833c4106974176aa66052 (patch)
tree860e1f2507d94d374e92096234f24247f2a5690c /gdb/tui/tui-data.h
parent6792b55e08ec49f40916d4f8d7168d0047b9e928 (diff)
downloadgdb-e7e11af42dca6482302833c4106974176aa66052.zip
gdb-e7e11af42dca6482302833c4106974176aa66052.tar.gz
gdb-e7e11af42dca6482302833c4106974176aa66052.tar.bz2
Add destructor to tui_win_info
This changes tui_free_window into a destructor for tui_free_window and then updates the users. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-win.c (tui_resize_all): Use delete. * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare destructor. (tui_free_window): Don't declare. * tui/tui-data.c (~tui_win_info): Rename from tui_free_window. Update.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r--gdb/tui/tui-data.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 047ee35..c5c2c2b 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -276,6 +276,8 @@ struct tui_win_info
generic.type = type;
}
+ ~tui_win_info ();
+
DISABLE_COPY_AND_ASSIGN (tui_win_info);
struct tui_gen_win_info generic; /* General window information. */
@@ -313,7 +315,6 @@ extern void tui_init_generic_part (struct tui_gen_win_info *);
extern tui_win_content tui_alloc_content (int, enum tui_win_type);
extern int tui_add_content_elements (struct tui_gen_win_info *,
int);
-extern void tui_free_window (struct tui_win_info *);
extern void tui_free_win_content (struct tui_gen_win_info *);
extern void tui_free_data_content (tui_win_content, int);
extern void tui_free_all_source_wins_content (void);