1
0
Fork 0
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:
jules 2017-09-19 16:20:53 +01:00
parent 4b75bbdab6
commit 2878bc2f75

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.