add operator== to ARDOUR::MidiSceneChange
This commit is contained in:
parent
12b715e6fa
commit
3d0efb8bf7
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user