aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-23 16:34:39 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:51 -0600
commitfb54fa768d148ccd07f2b27ae26e87d95605986c (patch)
tree402085a21e200fcbbf5a1f5c525c3262d637d9c4 /gdb/tui/tui-data.h
parentf7952c5774671414d9e0e8d3524c2921daa6f28e (diff)
downloadgdb-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-data.h')
-rw-r--r--gdb/tui/tui-data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index b7cf05c..8991a4a 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -34,11 +34,15 @@ struct tui_point
/* Generic window information. */
struct tui_gen_win_info
{
+protected:
+
explicit tui_gen_win_info (enum tui_win_type t)
: type (t)
{
}
+public:
+
virtual ~tui_gen_win_info ();
/* Call to refresh this window. */