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


On 09/27/2016 05:08 AM, Tom Tromey wrote:
> +class switch_thru_all_uis
>  {
> +public:
> +
> +  switch_thru_all_uis () : iter (nullptr), save_ui (&current_ui)
> +  {
> +    iter = ui_list;

This initializes "iter" twice.

Thanks,
Pedro Alves


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