This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 09/22] Remove make_cleanup_restore_current_ui
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Wed, 05 Oct 2016 20:52:28 -0600
- Subject: Re: [RFA 09/22] Remove make_cleanup_restore_current_ui
- Authentication-results: sourceware.org; auth=none
- References: <1474949330-4307-1-git-send-email-tom@tromey.com> <1474949330-4307-10-git-send-email-tom@tromey.com> <90ae8364-df1e-d322-269e-ffa44b57d475@redhat.com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>> +class switch_thru_all_uis
>> {
>> +public:
>> +
>> + switch_thru_all_uis () : iter (nullptr), save_ui (¤t_ui)
>> + {
>> + iter = ui_list;
Pedro> This initializes "iter" twice.
Thanks. Apparently I already found that one and fixed it on my branch,
because now I see:
+ switch_thru_all_uis () : m_iter (ui_list), m_save_ui (¤t_ui)
+ {
+ }
+
Tom