From 1eb2161f83babfad2f384efdadf49aa5c2f70860 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 Jul 2020 21:21:12 -0600 Subject: Remove body of tui_locator_window constructor The tui_locator_window constructor initializes the first character of two of its members. However, this is actually an error, since these were changed to be std::string. This removes the erroneous code. gdb/ChangeLog 2020-07-01 Tom Tromey * tui/tui-stack.h (struct tui_locator_window): Remove body. --- gdb/ChangeLog | 4 ++++ gdb/tui/tui-stack.h | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 37484e4..294e24f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2020-07-01 Tom Tromey + * tui/tui-stack.h (struct tui_locator_window): Remove body. + +2020-07-01 Tom Tromey + * tui/tui-regs.c (tui_data_window::display_registers_from) (tui_data_window::display_registers_from) (tui_data_window::first_data_item_displayed) diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h index fde7c6d..0253767 100644 --- a/gdb/tui/tui-stack.h +++ b/gdb/tui/tui-stack.h @@ -30,11 +30,7 @@ struct frame_info; struct tui_locator_window : public tui_gen_win_info { - tui_locator_window () - { - full_name[0] = 0; - proc_name[0] = 0; - } + tui_locator_window () = default; int max_height () const override { -- cgit v1.1