diff --git a/lib/audiodev/MIDIDecoder.cpp b/lib/audiodev/MIDIDecoder.cpp index 40eca9c..4f1ded3 100644 --- a/lib/audiodev/MIDIDecoder.cpp +++ b/lib/audiodev/MIDIDecoder.cpp @@ -40,7 +40,7 @@ std::optional readContinuedValue(std::vector::const_iterator& std::vector::const_iterator MIDIDecoder::receiveBytes(std::vector::const_iterator begin, std::vector::const_iterator end) { - std::vector::const_iterator it = begin; + auto it = begin; while (it != end) { uint8_t a = *it++; uint8_t b;