mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a compiler error if your compiler is too old and removed numerous code checks for old compilers which are now deprecated
This commit is contained in:
parent
871236d4cd
commit
9f3fb1c0a6
80 changed files with 121 additions and 263 deletions
|
|
@ -285,7 +285,6 @@ MidiMessage& MidiMessage::operator= (const MidiMessage& other)
|
|||
return *this;
|
||||
}
|
||||
|
||||
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
|
||||
MidiMessage::MidiMessage (MidiMessage&& other) noexcept
|
||||
: timeStamp (other.timeStamp), size (other.size)
|
||||
{
|
||||
|
|
@ -301,7 +300,6 @@ MidiMessage& MidiMessage::operator= (MidiMessage&& other) noexcept
|
|||
other.size = 0;
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
MidiMessage::~MidiMessage() noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -115,10 +115,11 @@ public:
|
|||
/** Copies this message from another one. */
|
||||
MidiMessage& operator= (const MidiMessage& other);
|
||||
|
||||
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
|
||||
/** Move constructor */
|
||||
MidiMessage (MidiMessage&&) noexcept;
|
||||
|
||||
/** Move assignment operator */
|
||||
MidiMessage& operator= (MidiMessage&&) noexcept;
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
/** Returns a pointer to the raw midi data.
|
||||
|
|
|
|||
|
|
@ -54,17 +54,17 @@ public:
|
|||
/** Replaces this sequence with another one. */
|
||||
MidiMessageSequence& operator= (const MidiMessageSequence&);
|
||||
|
||||
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
|
||||
/** Move constructor */
|
||||
MidiMessageSequence (MidiMessageSequence&& other) noexcept
|
||||
: list (static_cast<OwnedArray<MidiEventHolder>&&> (other.list))
|
||||
{}
|
||||
|
||||
/** Move assignment operator */
|
||||
MidiMessageSequence& operator= (MidiMessageSequence&& other) noexcept
|
||||
{
|
||||
list = static_cast<OwnedArray<MidiEventHolder>&&> (other.list);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Destructor. */
|
||||
~MidiMessageSequence();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue