This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 09/22] Remove make_cleanup_restore_current_ui


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>> +class switch_thru_all_uis
>> {
>> +public:
>> +
>> +  switch_thru_all_uis () : iter (nullptr), save_ui (&current_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 (&current_ui)
+  {
+  }
+

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]