diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-06 18:11:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-06 18:11:55 +0000 |
commit | 837bfc9af44c5b6c1eeb14e7af8d9ec62c59aac6 (patch) | |
tree | cb1fc5bf4f58290efd82e95274d33f67e828b0e5 /libs/evoral/src/Note.cpp | |
parent | c3c5c9a559f0dcf63a901f0f99f579fedf64984d (diff) |
the start (only the start) of MIDI diff commands
git-svn-id: svn://localhost/ardour2/branches/3.0@5637 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/src/Note.cpp')
-rw-r--r-- | libs/evoral/src/Note.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libs/evoral/src/Note.cpp b/libs/evoral/src/Note.cpp index cc3d4fee62..9440cde273 100644 --- a/libs/evoral/src/Note.cpp +++ b/libs/evoral/src/Note.cpp @@ -78,21 +78,20 @@ Note<Time>::~Note() { } - template<typename Time> const Note<Time>& -Note<Time>::operator=(const Note<Time>& copy) +Note<Time>::operator=(const Note<Time>& other) { - _on_event = copy._on_event; - _off_event = copy._off_event; + _on_event = other._on_event; + _off_event = other._off_event; - assert(time() == copy.time()); - assert(end_time() == copy.end_time()); - assert(note() == copy.note()); - assert(velocity() == copy.velocity()); - assert(length() == copy.length()); + assert(time() == other.time()); + assert(end_time() == other.end_time()); + assert(note() == other.note()); + assert(velocity() == other.velocity()); + assert(length() == other.length()); assert(_on_event.channel() == _off_event.channel()); - assert(channel() == copy.channel()); + assert(channel() == other.channel()); return *this; } |