1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Replace std::move with static_cast to fix errors in old compilers

This commit is contained in:
hogliux 2016-06-17 11:18:54 +01:00
parent 58f2e1b9f2
commit 329e54d21f

View file

@ -50,12 +50,12 @@ public:
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
MidiMessageSequence (MidiMessageSequence&& other) noexcept
: list (std::move (other.list))
: list (static_cast<OwnedArray<MidiEventHolder>&&> (other.list))
{}
MidiMessageSequence& operator= (MidiMessageSequence&& other) noexcept
{
list = std::move (other.list);
list = static_cast<OwnedArray<MidiEventHolder>&&> (other.list);
return *this;
}
#endif