mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
MidiBuffer: Fix deprecated iterator
This commit is contained in:
parent
fe4523628d
commit
d7ed5104c5
1 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,7 @@ bool MidiBuffer::Iterator::getNextEvent (const uint8*& midiData, int& numBytes,
|
|||
if (iterator == buffer.cend())
|
||||
return false;
|
||||
|
||||
const auto metadata = *iterator;
|
||||
const auto metadata = *iterator++;
|
||||
midiData = metadata.data;
|
||||
numBytes = metadata.numBytes;
|
||||
samplePosition = metadata.samplePosition;
|
||||
|
|
@ -231,7 +231,7 @@ bool MidiBuffer::Iterator::getNextEvent (MidiMessage& result, int& samplePositio
|
|||
if (iterator == buffer.cend())
|
||||
return false;
|
||||
|
||||
const auto metadata = *iterator;
|
||||
const auto metadata = *iterator++;
|
||||
result = metadata.getMessage();
|
||||
samplePosition = metadata.samplePosition;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue