Remove indirection from tui_data_window::regs_content
authorTom Tromey <tom@tromey.com>
Sat, 13 Jul 2019 22:24:48 +0000 (16:24 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Aug 2019 22:45:50 +0000 (16:45 -0600)
commitfa4dc567aec7664b3508dd9401b1fbb6d304f281
treee0af80ec79a5725116d3bad98caa8366432ac500
parentca02d7c8003ad020bb39f0b26dc93b661be67132
Remove indirection from tui_data_window::regs_content

tui_data_window::regs_content is currently a vector of unique_ptr.
However, due to the way this is managed now, there is no need to keep
the pointers -- it can simply be a vector of the objects themselves.
This patch removes this extra layer of indirection.

2019-08-20  Tom Tromey  <tom@tromey.com>

* tui/tui-regs.h (struct tui_data_window): Use
DISABLE_COPY_AND_ASSIGN.
<regs_content>: Change type, removing unique_ptr.
<tui_data_window>: Add move constructor.
* tui/tui-regs.c (tui_data_window::show_registers)
(tui_data_window::show_register_group)
(tui_data_window::display_registers_from)
(tui_data_window::display_registers_from)
(tui_data_window::first_data_item_displayed)
(tui_data_window::delete_data_content_windows)
(tui_data_window::rerender, tui_data_window::refresh_window)
(tui_data_window::check_register_values): Update.
gdb/ChangeLog
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h