diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-23 16:34:39 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:51 -0600 |
commit | fb54fa768d148ccd07f2b27ae26e87d95605986c (patch) | |
tree | 402085a21e200fcbbf5a1f5c525c3262d637d9c4 /gdb/tui/tui-layout.c | |
parent | f7952c5774671414d9e0e8d3524c2921daa6f28e (diff) | |
download | gdb-fb54fa768d148ccd07f2b27ae26e87d95605986c.zip gdb-fb54fa768d148ccd07f2b27ae26e87d95605986c.tar.gz gdb-fb54fa768d148ccd07f2b27ae26e87d95605986c.tar.bz2 |
Make tui_gen_win_info constructor protected
Now that all the window types have their own concrete classes, the
tui_gen_win_info constructor can be protected.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (init_and_make_win): Assert on unrecognized
type.
* tui/tui-data.h (struct tui_gen_win_info): Make constructor
protected.
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r-- | gdb/tui/tui-layout.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 9dbb599..d9a1f08 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -815,9 +815,7 @@ init_and_make_win (tui_gen_win_info *win_info, break; default: - gdb_assert (tui_win_is_auxiliary (win_type)); - win_info = new tui_gen_win_info (win_type); - break; + gdb_assert_not_reached (_("unhandled window type")); } } |