Use DISABLE_COPY_AND_ASSIGN in minimal_symbol_reader

This changes minimal_symbol_reader to use DISABLE_COPY_AND_ASSIGN,
rather than the manual approach it currently uses.

Tested by rebuilding.

gdb/ChangeLog
2018-12-27  Tom Tromey  <tom@tromey.com>

	* minsyms.h (class minimal_symbol_reader): Use
	DISABLE_COPY_AND_ASSIGN.
This commit is contained in:
Tom Tromey 2018-12-27 12:29:48 -07:00
parent 075c55e0cc
commit af9a216102
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2018-12-27 Tom Tromey <tom@tromey.com>
* minsyms.h (class minimal_symbol_reader): Use
DISABLE_COPY_AND_ASSIGN.
2018-12-27 Tom Tromey <tom@tromey.com>
* python/python.c (python_interactive_command): Use std::string.

View File

@ -128,10 +128,7 @@ class minimal_symbol_reader
private:
/* No need for these. They are intentionally not defined anywhere. */
minimal_symbol_reader &operator=
(const minimal_symbol_reader &);
minimal_symbol_reader (const minimal_symbol_reader &);
DISABLE_COPY_AND_ASSIGN (minimal_symbol_reader);
struct objfile *m_objfile;