Use new and delete for TUI windows
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 15:41:06 +0000 (09:41 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:23 +0000 (07:48 -0600)
commit6792b55e08ec49f40916d4f8d7168d0047b9e928
tree43542b25631f0e6b792d7294dc7d623f0adbe937
parent8e5cb9a54e156ba24a439aefa7b35e53b4cb0374
Use new and delete for TUI windows

This changes tui_win_info to use new and delete, rather than XNEW and
xfree.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-data.h (struct tui_win_info): Add constructor.
* tui/tui-data.c (tui_alloc_win_info): Use new.
(tui_free_window): Use delete.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h