From 068ff29b44a6221f67481e1654814ee3efa7c2af Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 24 Aug 2019 22:49:13 -0400 Subject: [PATCH] MIDIDecoder: Use auto for iterator type Same thing, significantly less reading. --- lib/audiodev/MIDIDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;