mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Added a copy constructor for MidiBuffer::Iterator
This commit is contained in:
parent
4b75bbdab6
commit
2878bc2f75
1 changed files with 5 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue