1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Reverted MPEZone: added copy constructor and copy assignment operator. (reverted from commit 42a3145153). Reason: the methods auto-generated by the compiler are fine.

This commit is contained in:
Timur Doumler 2016-05-26 12:53:39 +01:00
parent 42a3145153
commit 93b8fc18b6
2 changed files with 0 additions and 27 deletions

View file

@ -58,27 +58,6 @@ MPEZone::MPEZone (int masterChannel_,
checkAndLimitZoneParameters (0, 96, masterPitchbendRange);
}
MPEZone::MPEZone (const MPEZone& other) noexcept
: masterChannel (other.masterChannel),
numNoteChannels (other.numNoteChannels),
perNotePitchbendRange (other.perNotePitchbendRange),
masterPitchbendRange (other.masterPitchbendRange)
{
}
MPEZone& MPEZone::operator= (const MPEZone& other) noexcept
{
if (this != &other)
{
masterChannel = other.masterChannel;
numNoteChannels = other.numNoteChannels;
perNotePitchbendRange = other.perNotePitchbendRange;
masterPitchbendRange = other.masterPitchbendRange;
}
return *this;
}
//==============================================================================
int MPEZone::getMasterChannel() const noexcept
{

View file

@ -69,12 +69,6 @@ struct JUCE_API MPEZone
int perNotePitchbendRange = 48,
int masterPitchbendRange = 2) noexcept;
/** Copy constructor. */
MPEZone (const MPEZone& other) noexcept;
/** Copy assignment operator. */
MPEZone& operator= (const MPEZone& other) noexcept;
/* Returns the MIDI master channel number (in the range 1-16) of this zone. */
int getMasterChannel() const noexcept;