mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
add operator== to ARDOUR::MidiSceneChange
This commit is contained in:
parent
12b715e6fa
commit
3d0efb8bf7
2 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue