In switch_thru_all_uis, a pre-c++11 way of removing copy constructor
and assignment operator is used.
This patch uses the DISABLE_COPY_AND_ASSIGN macro which does the right
thing for pre and post c++11.
gdb/Changelog:
2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
* top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
+2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
+
+ * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
+
2021-01-19 Luis Machado <luis.machado@linaro.org>
* trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
current_ui = ui_list;
}
+ DISABLE_COPY_AND_ASSIGN (switch_thru_all_uis);
+
/* If done iterating, return true; otherwise return false. */
bool done () const
{
private:
- /* No need for these. They are intentionally not defined
- anywhere. */
- switch_thru_all_uis &operator= (const switch_thru_all_uis &);
- switch_thru_all_uis (const switch_thru_all_uis &);
-
/* Used to iterate through the UIs. */
struct ui *m_iter;