Browse Source

Added a copy constructor for MidiBuffer::Iterator

tags/2021-05-28
jules 8 years ago
parent
commit
2878bc2f75
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      modules/juce_audio_basics/midi/juce_MidiBuffer.h

+ 5
- 4
modules/juce_audio_basics/midi/juce_MidiBuffer.h View File

@@ -160,8 +160,8 @@ public:
/**
Used to iterate through the events in a MidiBuffer.
Note that altering the buffer while an iterator is using it isn't a
safe operation.
Note that altering the buffer while an iterator is using it will produce
undefined behaviour.
@see MidiBuffer
*/
@@ -172,6 +172,9 @@ public:
/** Creates an Iterator for this MidiBuffer. */
Iterator (const MidiBuffer&) noexcept;
/** Creates a copy of an iterator. */
Iterator (const Iterator&) noexcept = default;
/** Destructor. */
~Iterator() noexcept;
@@ -214,8 +217,6 @@ public:
//==============================================================================
const MidiBuffer& buffer;
const uint8* data;
JUCE_DECLARE_NON_COPYABLE (Iterator)
};
/** The raw data holding this buffer.


Loading…
Cancel
Save