[3/6] Use DISABLE_COPY_AND_ASSIGN in analyzer-logging.h

Message ID 20191205200852.19076-4-dmalcolm@redhat.com
State New
Headers show
Series
  • Use DISABLE_COPY_AND_ASSIGN
Related show

Commit Message

David Malcolm Dec. 5, 2019, 8:08 p.m.
gcc/ChangeLog:
	* analyzer/analyzer-logging.h (logger): Use
	DISABLE_COPY_AND_ASSIGN.
	(log_scope): Likewise.
	(log_user): Likewise.
---
 gcc/analyzer/analyzer-logging.h | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.21.0

Patch

diff --git a/gcc/analyzer/analyzer-logging.h b/gcc/analyzer/analyzer-logging.h
index 3e000b60495f..fac5e37f94a8 100644
--- a/gcc/analyzer/analyzer-logging.h
+++ b/gcc/analyzer/analyzer-logging.h
@@ -57,6 +57,8 @@  class logger
   FILE *get_file () const { return m_f_out; }
 
 private:
+  DISABLE_COPY_AND_ASSIGN (logger);
+
   int m_refcount;
   FILE *m_f_out;
   int m_indent_level;
@@ -77,6 +79,8 @@  public:
   ~log_scope ();
 
  private:
+  DISABLE_COPY_AND_ASSIGN (log_scope);
+
   logger *m_logger;
   const char *m_name;
 };
@@ -167,6 +171,8 @@  class log_user
   }
 
  private:
+  DISABLE_COPY_AND_ASSIGN (log_user);
+
   logger *m_logger;
 };