13
0

add operator== to ARDOUR::MidiSceneChange

This commit is contained in:
Paul Davis 2014-11-10 21:11:22 -05:00
parent 12b715e6fa
commit 3d0efb8bf7
2 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,8 @@ class MIDISceneChange : public SceneChange
XMLNode& get_state();
int set_state (const XMLNode&, int version);
bool operator==(const MIDISceneChange& other) const;
private:
int _bank;
int _program;

View File

@ -140,3 +140,11 @@ MIDISceneChange::set_state (const XMLNode& node, int /* version-ignored */)
return 0;
}
bool
MIDISceneChange::operator==(const MIDISceneChange& other) const
{
return _program == other._program &&
_bank == other._bank &&
_channel == other._channel;
}