diff data/midi/MIDIEvent.h @ 1733:c3b5564cfb78 by-id

Fix some deprecation warnings
author Chris Cannam
date Mon, 24 Jun 2019 14:28:17 +0100
parents ad5f892c0c4d
children 98339fac0faf
line wrap: on
line diff
--- a/data/midi/MIDIEvent.h	Fri Jun 21 14:35:38 2019 +0100
+++ b/data/midi/MIDIEvent.h	Mon Jun 24 14:28:17 2019 +0100
@@ -162,6 +162,9 @@
         m_metaMessage(sysEx)
     { }
 
+    MIDIEvent(const MIDIEvent &) =default;
+    MIDIEvent& operator=(const MIDIEvent &) =default;
+    
     ~MIDIEvent() { }
 
     void setTime(const unsigned long &time) { m_deltaTime = time; }
@@ -195,8 +198,6 @@
     friend bool operator<(const MIDIEvent &a, const MIDIEvent &b);
 
 private:
-    MIDIEvent& operator=(const MIDIEvent);
-
     unsigned long  m_deltaTime;
     unsigned long  m_duration;
     MIDIByte       m_eventCode;