Permalink
Browse files

Added various clang-tidy modernize-* fixes

  • Loading branch information...
ed95 committed Jan 31, 2019
1 parent 360be34 commit a234721110b8e7bbc253c34d1d3a71b397e0d919
Showing with 283 additions and 338 deletions.
  1. +1 −1 modules/juce_analytics/analytics/juce_Analytics.h
  2. +1 −1 modules/juce_analytics/destinations/juce_AnalyticsDestination.h
  3. +2 −2 modules/juce_audio_basics/audio_play_head/juce_AudioPlayHead.h
  4. +1 −1 modules/juce_audio_basics/buffers/juce_AudioChannelSet.h
  5. +6 −6 modules/juce_audio_basics/buffers/juce_AudioDataConverters.h
  6. +1 −1 modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h
  7. +2 −2 modules/juce_audio_basics/midi/juce_MidiKeyboardState.h
  8. +2 −3 modules/juce_audio_basics/mpe/juce_MPEInstrument.h
  9. +2 −8 modules/juce_audio_basics/mpe/juce_MPEZoneLayout.h
  10. +3 −5 modules/juce_audio_basics/sources/juce_AudioSource.h
  11. +2 −2 modules/juce_audio_basics/sources/juce_PositionableAudioSource.h
  12. +1 −1 modules/juce_audio_basics/synthesisers/juce_Synthesiser.h
  13. +1 −3 modules/juce_audio_basics/utilities/juce_LinearSmoothedValue.h
  14. +12 −21 modules/juce_audio_basics/utilities/juce_Reverb.h
  15. +1 −1 modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.h
  16. +1 −1 modules/juce_audio_devices/audio_io/juce_AudioIODevice.h
  17. +1 −1 modules/juce_audio_devices/audio_io/juce_AudioIODeviceType.h
  18. +1 −1 modules/juce_audio_devices/midi_io/juce_MidiInput.h
  19. +2 −2 modules/juce_audio_formats/format/juce_AudioFormatWriter.h
  20. +1 −1 modules/juce_audio_plugin_client/VST/juce_VSTCallbackHandler.h
  21. +2 −2 modules/juce_audio_plugin_client/utility/juce_PluginHostType.h
  22. +1 −1 modules/juce_audio_processors/format/juce_AudioPluginFormat.h
  23. +2 −2 modules/juce_audio_processors/processors/juce_AudioPluginInstance.h
  24. +1 −1 modules/juce_audio_processors/processors/juce_AudioProcessorListener.h
  25. +1 −1 modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h
  26. +1 −1 modules/juce_audio_processors/scanning/juce_KnownPluginList.h
  27. +4 −4 modules/juce_audio_utils/gui/juce_AudioAppComponent.h
  28. +2 −2 modules/juce_audio_utils/gui/juce_AudioThumbnailBase.h
  29. +4 −4 modules/juce_blocks_basics/blocks/juce_Block.h
  30. +4 −4 modules/juce_blocks_basics/blocks/juce_LEDGrid.h
  31. +2 −2 modules/juce_blocks_basics/blocks/juce_TouchList.h
  32. +3 −3 modules/juce_blocks_basics/littlefoot/juce_LittleFootCompiler.h
  33. +4 −4 modules/juce_blocks_basics/littlefoot/juce_LittleFootRunner.h
  34. +3 −3 modules/juce_blocks_basics/protocol/juce_BitPackingUtilities.h
  35. +1 −1 modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.h
  36. +2 −2 modules/juce_blocks_basics/topology/juce_RuleBasedTopologySource.h
  37. +2 −2 modules/juce_blocks_basics/topology/juce_TopologySource.h
  38. +2 −6 modules/juce_core/containers/juce_ArrayAllocationBase.h
  39. +1 −1 modules/juce_core/containers/juce_DynamicObject.h
  40. +2 −2 modules/juce_core/containers/juce_HashMap.h
  41. +3 −3 modules/juce_core/containers/juce_ListenerList.h
  42. +2 −2 modules/juce_core/containers/juce_SortedSet.h
  43. +1 −1 modules/juce_core/containers/juce_SparseSet.h
  44. +2 −2 modules/juce_core/files/juce_File.h
  45. +1 −1 modules/juce_core/maths/juce_Expression.h
  46. +1 −1 modules/juce_core/maths/juce_NormalisableRange.h
  47. +1 −3 modules/juce_core/memory/juce_HeapBlock.h
  48. +1 −1 modules/juce_core/memory/juce_HeavyweightLeakedObjectDetector.h
  49. +1 −1 modules/juce_core/memory/juce_LeakedObjectDetector.h
  50. +2 −2 modules/juce_core/memory/juce_OptionalScopedPointer.h
  51. +3 −3 modules/juce_core/memory/juce_ReferenceCountedObject.h
  52. +1 −1 modules/juce_core/memory/juce_ScopedPointer.h
  53. +1 −1 modules/juce_core/memory/juce_Singleton.h
  54. +2 −2 modules/juce_core/memory/juce_WeakReference.h
  55. +1 −1 modules/juce_core/network/juce_WebInputStream.h
  56. +2 −2 modules/juce_core/streams/juce_InputSource.h
  57. +2 −2 modules/juce_core/streams/juce_InputStream.h
  58. +1 −4 modules/juce_core/text/juce_CharPointer_ASCII.h
  59. +1 −4 modules/juce_core/text/juce_CharPointer_UTF16.h
  60. +1 −4 modules/juce_core/text/juce_CharPointer_UTF32.h
  61. +1 −4 modules/juce_core/text/juce_CharPointer_UTF8.h
  62. +2 −2 modules/juce_core/threads/juce_CriticalSection.h
  63. +1 −1 modules/juce_core/threads/juce_DynamicLibrary.h
  64. +2 −2 modules/juce_core/threads/juce_SpinLock.h
  65. +1 −1 modules/juce_core/threads/juce_Thread.h
  66. +1 −3 modules/juce_core/threads/juce_ThreadLocalValue.h
  67. +1 −1 modules/juce_core/threads/juce_ThreadPool.h
  68. +1 −1 modules/juce_core/threads/juce_TimeSliceThread.h
  69. +1 −1 modules/juce_core/zip/juce_ZipFile.h
  70. +1 −1 modules/juce_data_structures/undomanager/juce_UndoManager.h
  71. +2 −2 modules/juce_data_structures/undomanager/juce_UndoableAction.h
  72. +1 −1 modules/juce_data_structures/values/juce_CachedValue.h
  73. +2 −2 modules/juce_data_structures/values/juce_Value.h
  74. +1 −1 modules/juce_data_structures/values/juce_ValueTree.h
  75. +1 −1 modules/juce_data_structures/values/juce_ValueWithDefault.h
  76. +1 −1 modules/juce_dsp/containers/juce_AudioBlock.h
  77. +2 −2 modules/juce_dsp/containers/juce_SIMDRegister.h
  78. +1 −2 modules/juce_dsp/maths/juce_LookupTable.h
  79. +1 −1 modules/juce_dsp/processors/juce_Bias.h
  80. +1 −1 modules/juce_dsp/processors/juce_Gain.h
  81. +1 −2 modules/juce_dsp/processors/juce_Oscillator.h
  82. +1 −2 modules/juce_dsp/processors/juce_Reverb.h
  83. +1 −1 modules/juce_events/broadcasters/juce_ActionListener.h
  84. +1 −1 modules/juce_events/broadcasters/juce_ChangeListener.h
  85. +3 −3 modules/juce_events/messages/juce_CallbackMessage.h
  86. +2 −2 modules/juce_events/messages/juce_MessageManager.h
  87. +1 −1 modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h
  88. +1 −1 modules/juce_graphics/effects/juce_ImageEffectFilter.h
  89. +2 −2 modules/juce_graphics/fonts/juce_AttributedString.h
  90. +1 −1 modules/juce_graphics/fonts/juce_Typeface.h
  91. +1 −1 modules/juce_graphics/geometry/juce_RectangleList.h
  92. +4 −4 modules/juce_graphics/images/juce_Image.h
  93. +2 −2 modules/juce_graphics/images/juce_ImageFileFormat.h
  94. +12 −19 modules/juce_graphics/native/juce_RenderingHelpers.h
  95. +2 −2 modules/juce_gui_basics/buttons/juce_Button.h
  96. +1 −1 modules/juce_gui_basics/buttons/juce_ImageButton.h
  97. +1 −1 modules/juce_gui_basics/commands/juce_ApplicationCommandID.h
  98. +1 −1 modules/juce_gui_basics/commands/juce_ApplicationCommandManager.h
  99. +2 −2 modules/juce_gui_basics/components/juce_CachedComponentImage.h
  100. +2 −2 modules/juce_gui_basics/components/juce_Component.h
  101. +1 −1 modules/juce_gui_basics/components/juce_ComponentListener.h
  102. +2 −2 modules/juce_gui_basics/components/juce_ModalComponentManager.h
  103. +1 −1 modules/juce_gui_basics/desktop/juce_Desktop.h
  104. +1 −1 modules/juce_gui_basics/desktop/juce_Displays.h
  105. +1 −1 modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h
  106. +1 −1 modules/juce_gui_basics/filebrowser/juce_FileChooser.h
  107. +1 −1 modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h
  108. +2 −2 modules/juce_gui_basics/filebrowser/juce_FilenameComponent.h
  109. +1 −1 modules/juce_gui_basics/keyboard/juce_KeyListener.h
  110. +2 −2 modules/juce_gui_basics/keyboard/juce_TextInputTarget.h
  111. +4 −5 modules/juce_gui_basics/layout/juce_AnimatedPosition.h
  112. +3 −7 modules/juce_gui_basics/layout/juce_AnimatedPositionBehaviours.h
  113. +2 −2 modules/juce_gui_basics/layout/juce_ComponentBuilder.h
  114. +1 −1 modules/juce_gui_basics/layout/juce_ConcertinaPanel.h
  115. +1 −1 modules/juce_gui_basics/layout/juce_GroupComponent.h
  116. +2 −2 modules/juce_gui_basics/layout/juce_ScrollBar.h
  117. +1 −1 modules/juce_gui_basics/layout/juce_SidePanel.h
  118. +1 −1 modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.h
  119. +1 −1 modules/juce_gui_basics/layout/juce_TabbedButtonBar.h
  120. +4 −4 modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h
  121. +1 −1 modules/juce_gui_basics/menus/juce_MenuBarModel.h
  122. +3 −3 modules/juce_gui_basics/menus/juce_PopupMenu.h
  123. +1 −1 modules/juce_gui_basics/misc/juce_BubbleComponent.h
  124. +1 −1 modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h
  125. +1 −1 modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h
  126. +2 −2 modules/juce_gui_basics/mouse/juce_LassoComponent.h
  127. +1 −1 modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.h
  128. +1 −1 modules/juce_gui_basics/mouse/juce_MouseListener.h
  129. +1 −1 modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h
  130. +3 −3 modules/juce_gui_basics/mouse/juce_TooltipClient.h
  131. +2 −2 modules/juce_gui_basics/positioning/juce_MarkerList.h
  132. +4 −4 modules/juce_gui_basics/positioning/juce_RelativePointPath.h
  133. +1 −1 modules/juce_gui_basics/properties/juce_PropertyComponent.h
  134. +1 −1 modules/juce_gui_basics/properties/juce_TextPropertyComponent.h
  135. +2 −2 modules/juce_gui_basics/widgets/juce_ComboBox.h
  136. +2 −2 modules/juce_gui_basics/widgets/juce_Label.h
  137. +1 −1 modules/juce_gui_basics/widgets/juce_ListBox.h
  138. +1 −1 modules/juce_gui_basics/widgets/juce_ProgressBar.h
  139. +2 −2 modules/juce_gui_basics/widgets/juce_Slider.h
  140. +3 −3 modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h
  141. +2 −2 modules/juce_gui_basics/widgets/juce_TableListBox.h
  142. +4 −4 modules/juce_gui_basics/widgets/juce_TextEditor.h
  143. +1 −1 modules/juce_gui_basics/widgets/juce_Toolbar.h
  144. +1 −1 modules/juce_gui_basics/widgets/juce_TreeView.h
  145. +1 −1 modules/juce_gui_basics/windows/juce_AlertWindow.h
  146. +1 −1 modules/juce_gui_basics/windows/juce_CallOutBox.h
  147. +1 −1 modules/juce_gui_basics/windows/juce_ComponentPeer.h
  148. +1 −1 modules/juce_gui_basics/windows/juce_DocumentWindow.h
  149. +1 −1 modules/juce_gui_basics/windows/juce_ResizableWindow.h
  150. +1 −1 modules/juce_gui_basics/windows/juce_TooltipWindow.h
  151. +2 −2 modules/juce_gui_extra/code_editor/juce_CodeDocument.h
  152. +2 −2 modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h
  153. +1 −1 modules/juce_gui_extra/documents/juce_FileBasedDocument.h
  154. +2 −2 modules/juce_gui_extra/misc/juce_PushNotifications.h
  155. +1 −1 modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h
  156. +1 −1 modules/juce_opengl/opengl/juce_OpenGLContext.h
  157. +1 −1 modules/juce_opengl/opengl/juce_OpenGLImage.h
  158. +2 −2 modules/juce_opengl/opengl/juce_OpenGLRenderer.h
  159. +1 −1 modules/juce_opengl/utils/juce_OpenGLAppComponent.h
  160. +2 −2 modules/juce_osc/osc/juce_OSCReceiver.h
  161. +1 −1 modules/juce_product_unlocking/marketplace/juce_OnlineUnlockForm.h
  162. +1 −1 modules/juce_video/playback/juce_VideoComponent.h
@@ -102,7 +102,7 @@ class JUCE_API Analytics : public DeletedAtShutdown
private:
//==============================================================================
Analytics() = default;
~Analytics() { clearSingletonInstance(); }
~Analytics() override { clearSingletonInstance(); }

String userId;
StringPairArray userProperties;
@@ -80,7 +80,7 @@ struct JUCE_API AnalyticsDestination
AnalyticsDestination() = default;

/** Destructor. */
virtual ~AnalyticsDestination() {}
virtual ~AnalyticsDestination() = default;

/**
When an AnalyticsDestination is added to an Analytics object this method
@@ -39,10 +39,10 @@ class JUCE_API AudioPlayHead
{
protected:
//==============================================================================
AudioPlayHead() {}
AudioPlayHead() = default;

public:
virtual ~AudioPlayHead() {}
virtual ~AudioPlayHead() = default;

//==============================================================================
/** Frame rate types. */
@@ -49,7 +49,7 @@ class JUCE_API AudioChannelSet
/** Creates an empty channel set.
You can call addChannel to add channels to the set.
*/
AudioChannelSet() noexcept {}
AudioChannelSet() = default;

/** Creates a zero-channel set which can be used to indicate that a
bus is disabled. */
@@ -277,8 +277,8 @@ class JUCE_API AudioData
class NonInterleaved
{
public:
inline NonInterleaved() noexcept {}
inline NonInterleaved (const NonInterleaved&) noexcept {}
inline NonInterleaved() = default;
inline NonInterleaved (const NonInterleaved&) = default;
inline NonInterleaved (const int) noexcept {}
inline void copyFrom (const NonInterleaved&) noexcept {}
template <class SampleFormatType> inline void advanceData (SampleFormatType& s) noexcept { s.advance(); }
@@ -292,15 +292,15 @@ class JUCE_API AudioData
class Interleaved
{
public:
inline Interleaved() noexcept : numInterleavedChannels (1) {}
inline Interleaved (const Interleaved& other) noexcept : numInterleavedChannels (other.numInterleavedChannels) {}
inline Interleaved() noexcept {}
inline Interleaved (const Interleaved& other) = default;
inline Interleaved (const int numInterleavedChans) noexcept : numInterleavedChannels (numInterleavedChans) {}
inline void copyFrom (const Interleaved& other) noexcept { numInterleavedChannels = other.numInterleavedChannels; }
template <class SampleFormatType> inline void advanceData (SampleFormatType& s) noexcept { s.skip (numInterleavedChannels); }
template <class SampleFormatType> inline void advanceDataBy (SampleFormatType& s, int numSamples) noexcept { s.skip (numInterleavedChannels * numSamples); }
template <class SampleFormatType> inline void clear (SampleFormatType& s, int numSamples) noexcept { while (--numSamples >= 0) { s.clear(); s.skip (numInterleavedChannels); } }
template <class SampleFormatType> inline int getNumBytesBetweenSamples (const SampleFormatType&) const noexcept { return numInterleavedChannels * SampleFormatType::bytesPerSample; }
int numInterleavedChannels;
int numInterleavedChannels = 1;
enum { isInterleavedType = 1 };
};

@@ -587,7 +587,7 @@ class JUCE_API AudioData
class Converter
{
public:
virtual ~Converter() {}
virtual ~Converter() = default;

/** Converts a sequence of samples from the converter's source format into the dest format. */
virtual void convertSamples (void* destSamples, const void* sourceSamples, int numSamples) const = 0;
@@ -172,7 +172,7 @@ class AudioBuffer
/** Destructor.
This will free any memory allocated by the buffer.
*/
~AudioBuffer() noexcept {}
~AudioBuffer() = default;

/** Move constructor */
AudioBuffer (AudioBuffer&& other) noexcept
@@ -38,8 +38,8 @@ class JUCE_API MidiKeyboardStateListener
{
public:
//==============================================================================
MidiKeyboardStateListener() noexcept {}
virtual ~MidiKeyboardStateListener() {}
MidiKeyboardStateListener() = default;
virtual ~MidiKeyboardStateListener() = default;

//==============================================================================
/** Called when one of the MidiKeyboardState's keys is pressed.
@@ -241,7 +241,7 @@ class JUCE_API MPEInstrument
{
public:
/** Destructor. */
virtual ~Listener() {}
virtual ~Listener() = default;

/** Implement this callback to be informed whenever a new expressive MIDI
note is triggered.
@@ -352,8 +352,7 @@ class JUCE_API MPEInstrument

struct MPEDimension
{
MPEDimension() noexcept : trackingMode (lastNotePlayedOnChannel) {}
TrackingMode trackingMode;
TrackingMode trackingMode = lastNotePlayedOnChannel;
MPEValue lastValueReceivedOnChannel[16];
MPEValue MPENote::* value;
MPEValue& getValue (MPENote& note) noexcept { return note.*(value); }
@@ -80,13 +80,7 @@ class JUCE_API MPEZoneLayout
*/
struct Zone
{
Zone (const Zone& other) noexcept
: numMemberChannels (other.numMemberChannels),
perNotePitchbendRange (other.perNotePitchbendRange),
masterPitchbendRange (other.masterPitchbendRange),
lowerZone (other.lowerZone)
{
}
Zone (const Zone& other) = default;

bool isLowerZone() const noexcept { return lowerZone; }
bool isUpperZone() const noexcept { return ! lowerZone; }
@@ -185,7 +179,7 @@ class JUCE_API MPEZoneLayout
{
public:
/** Destructor. */
virtual ~Listener() {}
virtual ~Listener() = default;

/** Implement this callback to be notified about any changes to this
MPEZoneLayout. Will be called whenever a zone is added, zones are
@@ -32,9 +32,7 @@ namespace juce
struct JUCE_API AudioSourceChannelInfo
{
/** Creates an uninitialised AudioSourceChannelInfo. */
AudioSourceChannelInfo() noexcept
{
}
AudioSourceChannelInfo() = default;

/** Creates an AudioSourceChannelInfo. */
AudioSourceChannelInfo (AudioBuffer<float>* bufferToUse,
@@ -113,11 +111,11 @@ class JUCE_API AudioSource
protected:
//==============================================================================
/** Creates an AudioSource. */
AudioSource() noexcept {}
AudioSource() = default;

public:
/** Destructor. */
virtual ~AudioSource() {}
virtual ~AudioSource() = default;

//==============================================================================
/** Tells the source to prepare for playing.
@@ -40,11 +40,11 @@ class JUCE_API PositionableAudioSource : public AudioSource
protected:
//==============================================================================
/** Creates the PositionableAudioSource. */
PositionableAudioSource() noexcept {}
PositionableAudioSource() = default;

public:
/** Destructor */
~PositionableAudioSource() {}
~PositionableAudioSource() override = default;

//==============================================================================
/** Tells the stream to move to a new position.
@@ -46,7 +46,7 @@ class JUCE_API SynthesiserSound : public ReferenceCountedObject

public:
/** Destructor. */
virtual ~SynthesiserSound();
~SynthesiserSound() override;

//==============================================================================
/** Returns true if this sound should be played when a given midi note is pressed.
@@ -35,9 +35,7 @@ class LinearSmoothedValue
{
public:
/** Constructor. */
LinearSmoothedValue() noexcept
{
}
LinearSmoothedValue() = default;

/** Constructor. */
LinearSmoothedValue (FloatType initialValue) noexcept
@@ -49,22 +49,13 @@ class Reverb
/** Holds the parameters being used by a Reverb object. */
struct Parameters
{
Parameters() noexcept
: roomSize (0.5f),
damping (0.5f),
wetLevel (0.33f),
dryLevel (0.4f),
width (1.0f),
freezeMode (0)
{}

float roomSize; /**< Room size, 0 to 1.0, where 1.0 is big, 0 is small. */
float damping; /**< Damping, 0 to 1.0, where 0 is not damped, 1.0 is fully damped. */
float wetLevel; /**< Wet level, 0 to 1.0 */
float dryLevel; /**< Dry level, 0 to 1.0 */
float width; /**< Reverb width, 0 to 1.0, where 1.0 is very wide. */
float freezeMode; /**< Freeze mode - values < 0.5 are "normal" mode, values > 0.5
put the reverb into a continuous feedback loop. */
float roomSize = 0.5f; /**< Room size, 0 to 1.0, where 1.0 is big, 0 is small. */
float damping = 0.5f; /**< Damping, 0 to 1.0, where 0 is not damped, 1.0 is fully damped. */
float wetLevel = 0.33f; /**< Wet level, 0 to 1.0 */
float dryLevel = 0.4f; /**< Dry level, 0 to 1.0 */
float width = 1.0f; /**< Reverb width, 0 to 1.0, where 1.0 is very wide. */
float freezeMode = 0.0f; /**< Freeze mode - values < 0.5 are "normal" mode, values > 0.5
put the reverb into a continuous feedback loop. */
};

//==============================================================================
@@ -224,7 +215,7 @@ class Reverb
class CombFilter
{
public:
CombFilter() noexcept : bufferSize (0), bufferIndex (0), last (0) {}
CombFilter() noexcept {}

void setSize (const int size)
{
@@ -259,8 +250,8 @@ class Reverb

private:
HeapBlock<float> buffer;
int bufferSize, bufferIndex;
float last;
int bufferSize = 0, bufferIndex = 0;
float last = 0.0f;

JUCE_DECLARE_NON_COPYABLE (CombFilter)
};
@@ -269,7 +260,7 @@ class Reverb
class AllPassFilter
{
public:
AllPassFilter() noexcept : bufferSize (0), bufferIndex (0) {}
AllPassFilter() noexcept {}

void setSize (const int size)
{
@@ -300,7 +291,7 @@ class Reverb

private:
HeapBlock<float> buffer;
int bufferSize, bufferIndex;
int bufferSize = 0, bufferIndex = 0;

JUCE_DECLARE_NON_COPYABLE (AllPassFilter)
};
@@ -76,7 +76,7 @@ class JUCE_API AudioDeviceManager : public ChangeBroadcaster
AudioDeviceManager();

/** Destructor. */
~AudioDeviceManager();
~AudioDeviceManager() override;

//==============================================================================
/**
@@ -43,7 +43,7 @@ class JUCE_API AudioIODeviceCallback
{
public:
/** Destructor. */
virtual ~AudioIODeviceCallback() {}
virtual ~AudioIODeviceCallback() = default;

/** Processes a block of incoming and outgoing audio data.
@@ -126,7 +126,7 @@ class JUCE_API AudioIODeviceType
class Listener
{
public:
virtual ~Listener() {}
virtual ~Listener() = default;

/** Called when the list of available audio devices changes. */
virtual void audioDeviceListChanged() = 0;
@@ -41,7 +41,7 @@ class JUCE_API MidiInputCallback
{
public:
/** Destructor. */
virtual ~MidiInputCallback() {}
virtual ~MidiInputCallback() = default;


/** Receives an incoming message.
@@ -216,8 +216,8 @@ class JUCE_API AudioFormatWriter
class JUCE_API IncomingDataReceiver
{
public:
IncomingDataReceiver() {}
virtual ~IncomingDataReceiver() {}
IncomingDataReceiver() = default;
virtual ~IncomingDataReceiver() = default;

virtual void reset (int numChannels, double sampleRate, int64 totalSamplesInSource) = 0;
virtual void addBlock (int64 sampleNumberInSource, const AudioBuffer<float>& newData,
@@ -34,7 +34,7 @@ namespace juce
*/
struct VSTCallbackHandler
{
virtual ~VSTCallbackHandler() {}
virtual ~VSTCallbackHandler() = default;

/** This is called by the VST plug-in wrapper when it receives unhandled
plug-in "can do" calls from the host.
@@ -41,8 +41,8 @@ class PluginHostType
public:
//==============================================================================
PluginHostType() : type (getHostType()) {}
PluginHostType (const PluginHostType& other) noexcept : type (other.type) {}
PluginHostType& operator= (const PluginHostType& other) noexcept { type = other.type; return *this; }
PluginHostType (const PluginHostType& other) noexcept = default;
PluginHostType& operator= (const PluginHostType& other) noexcept = default;

//==============================================================================
/** Represents the host type and also its version for some hosts. */
@@ -42,7 +42,7 @@ class JUCE_API AudioPluginFormat
/** Structure used for callbacks when instantiation is completed. */
struct JUCE_API InstantiationCompletionCallback
{
virtual ~InstantiationCompletionCallback() {}
virtual ~InstantiationCompletionCallback() = default;
virtual void completionCallback (AudioPluginInstance* instance, const String& error) = 0;

JUCE_LEAK_DETECTOR (InstantiationCompletionCallback)
@@ -59,7 +59,7 @@ class JUCE_API AudioPluginInstance : public AudioProcessor
Make sure that you delete any UI components that belong to this plugin before
deleting the plugin.
*/
~AudioPluginInstance() override {}
~AudioPluginInstance() override = default;

//==============================================================================
/** Fills-in the appropriate parts of this plugin description object. */
@@ -118,7 +118,7 @@ class JUCE_API AudioPluginInstance : public AudioProcessor
StringArray onStrings, offStrings;
};

AudioPluginInstance() {}
AudioPluginInstance() = default;
AudioPluginInstance (const BusesProperties& ioLayouts) : AudioProcessor (ioLayouts) {}
template <int numLayouts>
AudioPluginInstance (const short channelLayoutList[numLayouts][2]) : AudioProcessor (channelLayoutList) {}
@@ -42,7 +42,7 @@ class JUCE_API AudioProcessorListener
public:
//==============================================================================
/** Destructor. */
virtual ~AudioProcessorListener() {}
virtual ~AudioProcessorListener() = default;

//==============================================================================
/** Receives a callback when a parameter is changed.
@@ -238,7 +238,7 @@ class JUCE_API AudioProcessorParameter
{
public:
/** Destructor. */
virtual ~Listener() {}
virtual ~Listener() = default;

/** Receives a callback when a parameter has been changed.
@@ -46,7 +46,7 @@ class JUCE_API KnownPluginList : public ChangeBroadcaster
KnownPluginList();

/** Destructor. */
~KnownPluginList();
~KnownPluginList() override;

//==============================================================================
/** Clears the list. */
Oops, something went wrong.

0 comments on commit a234721

Please sign in to comment.