mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
A minor code tidyup
This commit is contained in:
parent
f0c044083b
commit
e174bb26bd
5 changed files with 10 additions and 17 deletions
|
|
@ -80,10 +80,8 @@ MidiMessageSequence::MidiEventHolder* MidiMessageSequence::getEventPointer (int
|
|||
return list[index];
|
||||
}
|
||||
|
||||
MidiMessageSequence::MidiEventHolder** MidiMessageSequence::begin() noexcept { return list.begin(); }
|
||||
MidiMessageSequence::MidiEventHolder*const* MidiMessageSequence::begin() const noexcept { return list.begin(); }
|
||||
MidiMessageSequence::MidiEventHolder** MidiMessageSequence::end() noexcept { return list.end(); }
|
||||
MidiMessageSequence::MidiEventHolder*const* MidiMessageSequence::end() const noexcept { return list.end(); }
|
||||
MidiMessageSequence::MidiEventHolder** MidiMessageSequence::begin() const noexcept { return list.begin(); }
|
||||
MidiMessageSequence::MidiEventHolder** MidiMessageSequence::end() const noexcept { return list.end(); }
|
||||
|
||||
double MidiMessageSequence::getTimeOfMatchingKeyUp (int index) const noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -101,12 +101,10 @@ public:
|
|||
MidiEventHolder* getEventPointer (int index) const noexcept;
|
||||
|
||||
/** Iterator for the list of MidiEventHolders */
|
||||
MidiEventHolder** begin() noexcept;
|
||||
MidiEventHolder*const* begin() const noexcept;
|
||||
MidiEventHolder** begin() const noexcept;
|
||||
|
||||
/** Iterator for the list of MidiEventHolders */
|
||||
MidiEventHolder** end() noexcept;
|
||||
MidiEventHolder*const* end() const noexcept;
|
||||
MidiEventHolder** end() const noexcept;
|
||||
|
||||
/** Returns the time of the note-up that matches the note-on at this index.
|
||||
If the event at this index isn't a note-on, it'll just return 0.
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ namespace juce
|
|||
|
||||
// The AudioHardwareService stuff was deprecated in 10.11 but there's no replacement yet,
|
||||
// so we'll have to silence the warnings here and revisit it in a future OS version..
|
||||
#if ((defined (MAC_OS_X_VERSION_10_12) && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_12) \
|
||||
#if ((defined (MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_13) \
|
||||
|| (defined (MAC_OS_X_VERSION_10_12) && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_12) \
|
||||
|| (defined (MAC_OS_X_VERSION_10_11) && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_11))
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -78,12 +78,10 @@ public:
|
|||
AudioFormat* getKnownFormat (int index) const;
|
||||
|
||||
/** Iterator access to the list of known formats. */
|
||||
AudioFormat** begin() noexcept { return knownFormats.begin(); }
|
||||
AudioFormat*const* begin() const noexcept { return knownFormats.begin(); }
|
||||
AudioFormat** begin() const noexcept { return knownFormats.begin(); }
|
||||
|
||||
/** Iterator access to the list of known formats. */
|
||||
AudioFormat** end() noexcept { return knownFormats.end(); }
|
||||
AudioFormat*const* end() const noexcept { return knownFormats.end(); }
|
||||
AudioFormat** end() const noexcept { return knownFormats.end(); }
|
||||
|
||||
/** Looks for which of the known formats is listed as being for a given file
|
||||
extension.
|
||||
|
|
|
|||
|
|
@ -61,12 +61,10 @@ public:
|
|||
PluginDescription* getType (int index) const noexcept { return types [index]; }
|
||||
|
||||
/** Type iteration. */
|
||||
PluginDescription** begin() noexcept { return types.begin(); }
|
||||
PluginDescription*const* begin() const noexcept { return types.begin(); }
|
||||
PluginDescription** begin() const noexcept { return types.begin(); }
|
||||
|
||||
/** Type iteration. */
|
||||
PluginDescription** end() noexcept { return types.end(); }
|
||||
PluginDescription*const* end() const noexcept { return types.end(); }
|
||||
PluginDescription** end() const noexcept { return types.end(); }
|
||||
|
||||
/** Looks for a type in the list which comes from this file. */
|
||||
PluginDescription* getTypeForFile (const String& fileOrIdentifier) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue