use DISABLE_COPY_AND_ASSIGN in switch_thru_all_uis
authorLancelot SIX <lsix@lancelotsix.com>
Fri, 15 Jan 2021 19:35:36 +0000 (19:35 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Tue, 19 Jan 2021 22:49:12 +0000 (22:49 +0000)
commit1c3b85ad28085c870f345a341279a869a1560f49
tree75cbd2526c801958c773296be299d9ac0906ad14
parenta9a87d3525c2c32c92f0bcfc450ef005fa1f2863
use DISABLE_COPY_AND_ASSIGN in switch_thru_all_uis

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.
gdb/ChangeLog
gdb/top.h