Browse Source

MidiMessage: Fix constness

Signed-off-by: falkTX <falktx@falktx.com>
tags/2021-05-28
falkTX 5 years ago
parent
commit
905198c588
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_basics/midi/juce_MidiMessage.h

+ 1
- 1
modules/juce_audio_basics/midi/juce_MidiMessage.h View File

@@ -979,7 +979,7 @@ private:
#endif
inline bool isHeapAllocated() const noexcept { return size > (int) sizeof (packedData); }
inline uint8* getData() const noexcept { return isHeapAllocated() ? packedData.allocatedData : (uint8*) packedData.asBytes; }
inline uint8* getData() const noexcept { return isHeapAllocated() ? packedData.allocatedData : const_cast<uint8*>(packedData.asBytes); }
uint8* allocateSpace (int);
};


Loading…
Cancel
Save