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:
parent
a988b90aff
commit
a9a0f6b92f
35 changed files with 351 additions and 112 deletions
|
|
@ -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;)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue