diff mbox series

[1/6] Use DISABLE_COPY_AND_ASSIGN in auto_timevar

Message ID 20191205200852.19076-2-dmalcolm@redhat.com
State New
Headers show
Series Use DISABLE_COPY_AND_ASSIGN | expand

Commit Message

David Malcolm Dec. 5, 2019, 8:08 p.m. UTC
gcc/ChangeLog:
	* timevar.h (auto_timevar): Use DISABLE_COPY_AND_ASSIGN.
---
 gcc/timevar.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/timevar.h b/gcc/timevar.h
index d053ab795acf..c3b6233c35dd 100644
--- a/gcc/timevar.h
+++ b/gcc/timevar.h
@@ -248,9 +248,7 @@  class auto_timevar
   }
 
  private:
-
-  // Private to disallow copies.
-  auto_timevar (const auto_timevar &);
+  DISABLE_COPY_AND_ASSIGN (auto_timevar);
 
   timer *m_timer;
   timevar_id_t m_tv;