From: Tom Tromey Date: Thu, 2 Jul 2020 03:21:12 +0000 (-0600) Subject: Remove body of tui_locator_window constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1eb2161f83babfad2f384efdadf49aa5c2f70860;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 37484e402ff..294e24fc179 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +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) diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h index fde7c6dd2c9..0253767ad98 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 {