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 a6adc5396607bd30fc912890b583998448b35800..dc4dd30e5ea0793e405c502b6036a75e06c553a7 100644 (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.
index f6799ef00ce138c840c1f439bbd56532276a03e4..9e8e4c75ea9a7a9262c237fb1936292e8ba7f305 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;
 
This page took 0.031479 seconds and 4 git commands to generate.