Make tui_gen_win_info constructor protected
authorTom Tromey <tom@tromey.com>
Sun, 23 Jun 2019 22:34:39 +0000 (16:34 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:51 +0000 (07:48 -0600)
commitfb54fa768d148ccd07f2b27ae26e87d95605986c
tree402085a21e200fcbbf5a1f5c525c3262d637d9c4
parentf7952c5774671414d9e0e8d3524c2921daa6f28e
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.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-layout.c