summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/automation_list.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-07-09 14:28:01 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-07-09 14:30:38 -0400
commit9e8b50f07539e77f10829f5e8b352b40a1eac309 (patch)
treeb42a626b594ef5a3c081b29efcccf31db4f83574 /libs/ardour/ardour/automation_list.h
parent2a852cfc75c065d375bd4462df1c653978a6b49f (diff)
make AutomationList::operator==() private and abort() as its core, because it should never be called/used.
Also make AutomationList::operator=() use ControlList::operator=() rather than try to reimplement it
Diffstat (limited to 'libs/ardour/ardour/automation_list.h')
-rw-r--r--libs/ardour/ardour/automation_list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/ardour/automation_list.h b/libs/ardour/ardour/automation_list.h
index 6e7b0007cd..72c26420c0 100644
--- a/libs/ardour/ardour/automation_list.h
+++ b/libs/ardour/ardour/automation_list.h
@@ -21,6 +21,7 @@
#define __ardour_automation_event_h__
#include <stdint.h>
+#include <cstdlib>
#include <list>
#include <cmath>
@@ -71,7 +72,6 @@ class LIBARDOUR_API AutomationList : public PBD::StatefulDestructible, public Ev
virtual boost::shared_ptr<Evoral::ControlList> create(Evoral::Parameter id);
AutomationList& operator= (const AutomationList&);
- bool operator== (const AutomationList&);
void thaw ();
@@ -116,6 +116,8 @@ class LIBARDOUR_API AutomationList : public PBD::StatefulDestructible, public Ev
AutoState _state;
AutoStyle _style;
gint _touching;
+
+ bool operator== (const AutomationList&) const { /* not called */ abort(); return false; }
};
} // namespace