Use DISABLE_COPY_AND_ASSIGN in minimal_symbol_reader
authorTom Tromey <tom@tromey.com>
Thu, 27 Dec 2018 19:29:48 +0000 (12:29 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 27 Dec 2018 19:29:48 +0000 (12:29 -0700)
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.

gdb/ChangeLog
gdb/minsyms.h

index a6adc53..dc4dd30 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (gdbpy_parameter): Likewise.
        * python/py-utils.c (unicode_to_encoded_string): Update comment.
index f6799ef..9e8e4c7 100644 (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;