mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
gdb, gdbsupport: use DISABLE_COPY_AND_ASSIGN in a few spots
Replace some explicitly deleted copy constructor and copy assignment operator with the DISABLE_COPY_AND_ASSIGN macro for consistency with the rest of the codebase. Change-Id: If3fe2c4d7b3cb4530eace86d589116f805c7656f Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
3917afa371
commit
4ec16ac822
@@ -232,14 +232,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
DISABLE_COPY_AND_ASSIGN (scoped_restore_interp);
|
||||
|
||||
~scoped_restore_interp ()
|
||||
{
|
||||
set_interp (m_interp->name ());
|
||||
}
|
||||
|
||||
scoped_restore_interp (const scoped_restore_interp &) = delete;
|
||||
scoped_restore_interp &operator= (const scoped_restore_interp &) = delete;
|
||||
|
||||
private:
|
||||
|
||||
struct interp *set_interp (const char *name);
|
||||
|
||||
Reference in New Issue
Block a user