[08/11] Remove body of tui_locator_window constructor

Message ID 20200618021523.10681-9-tom@tromey.com
State New
Headers show
Series
  • TUI cleanups
Related show

Commit Message

Tom Tromey June 18, 2020, 2:15 a.m.
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.

2020-06-15  Tom Tromey  <tom@tromey.com>

	* 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(-)

-- 
2.17.2

Patch

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
   {