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

Enforced more comprehensive const-correctness in the JUCE container classes

This commit is contained in:
Tom Poole 2019-05-24 16:56:24 +01:00
parent a988b90aff
commit a9a0f6b92f
35 changed files with 351 additions and 112 deletions

View file

@ -726,7 +726,7 @@ MPENote* MPEInstrument::getLastNotePlayedPtr (int midiChannel) noexcept
const MPENote* MPEInstrument::getHighestNotePtr (int midiChannel) const noexcept
{
int initialNoteMax = -1;
MPENote* result = nullptr;
const MPENote* result = nullptr;
for (auto i = notes.size(); --i >= 0;)
{
@ -752,7 +752,7 @@ MPENote* MPEInstrument::getHighestNotePtr (int midiChannel) noexcept
const MPENote* MPEInstrument::getLowestNotePtr (int midiChannel) const noexcept
{
int initialNoteMin = 128;
MPENote* result = nullptr;
const MPENote* result = nullptr;
for (auto i = notes.size(); --i >= 0;)
{