Remove body of tui_locator_window constructor
authorTom Tromey <tom@tromey.com>
Thu, 2 Jul 2020 03:21:12 +0000 (21:21 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 2 Jul 2020 03:21:16 +0000 (21:21 -0600)
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  <tom@tromey.com>

* tui/tui-stack.h (struct tui_locator_window): Remove body.

gdb/ChangeLog
gdb/tui/tui-stack.h

index 37484e402ff68e4faf9421b916285827315d7321..294e24fc1794e77facf727613a1bc4f156ba271b 100644 (file)
@@ -1,3 +1,7 @@
+2020-07-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-stack.h (struct tui_locator_window): Remove body.
+
 2020-07-01  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-regs.c (tui_data_window::display_registers_from)
index fde7c6dd2c938a41f6d6e5f770a6bc6f3e0d6152..0253767ad98ec58001943dde5c9351dc7e164e1a 100644 (file)
@@ -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
   {
This page took 0.028328 seconds and 4 git commands to generate.