mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added various clang-tidy modernize-* fixes
This commit is contained in:
parent
360be3400d
commit
a234721110
162 changed files with 283 additions and 338 deletions
|
|
@ -102,7 +102,7 @@ public:
|
|||
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 @@ public:
|
|||
/** 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 @@ public:
|
|||
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 @@ public:
|
|||
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 @@ public:
|
|||
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 @@ public:
|
|||
/** 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 @@ public:
|
|||
{
|
||||
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 @@ private:
|
|||
|
||||
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 @@ public:
|
|||
*/
|
||||
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 @@ public:
|
|||
{
|
||||
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 @@ protected:
|
|||
|
||||
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 @@ public:
|
|||
/** 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 @@ private:
|
|||
class CombFilter
|
||||
{
|
||||
public:
|
||||
CombFilter() noexcept : bufferSize (0), bufferIndex (0), last (0) {}
|
||||
CombFilter() noexcept {}
|
||||
|
||||
void setSize (const int size)
|
||||
{
|
||||
|
|
@ -259,8 +250,8 @@ private:
|
|||
|
||||
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 @@ private:
|
|||
class AllPassFilter
|
||||
{
|
||||
public:
|
||||
AllPassFilter() noexcept : bufferSize (0), bufferIndex (0) {}
|
||||
AllPassFilter() noexcept {}
|
||||
|
||||
void setSize (const int size)
|
||||
{
|
||||
|
|
@ -300,7 +291,7 @@ private:
|
|||
|
||||
private:
|
||||
HeapBlock<float> buffer;
|
||||
int bufferSize, bufferIndex;
|
||||
int bufferSize = 0, bufferIndex = 0;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE (AllPassFilter)
|
||||
};
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public:
|
|||
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 @@ public:
|
|||
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 @@ public:
|
|||
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 @@ public:
|
|||
/** 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 @@ public:
|
|||
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 @@ protected:
|
|||
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 @@ public:
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
|
||||
/** Receives a callback when a parameter has been changed.
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public:
|
|||
KnownPluginList();
|
||||
|
||||
/** Destructor. */
|
||||
~KnownPluginList();
|
||||
~KnownPluginList() override;
|
||||
|
||||
//==============================================================================
|
||||
/** Clears the list. */
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public:
|
|||
AudioAppComponent();
|
||||
AudioAppComponent (AudioDeviceManager&);
|
||||
|
||||
~AudioAppComponent();
|
||||
~AudioAppComponent() override;
|
||||
|
||||
/** A subclass should call this from their constructor, to set up the audio. */
|
||||
void setAudioChannels (int numInputChannels, int numOutputChannels, const XmlElement* const storedSettings = nullptr);
|
||||
|
|
@ -84,7 +84,7 @@ public:
|
|||
@see releaseResources, getNextAudioBlock
|
||||
*/
|
||||
virtual void prepareToPlay (int samplesPerBlockExpected,
|
||||
double sampleRate) = 0;
|
||||
double sampleRate) override = 0;
|
||||
|
||||
/** Allows the source to release anything it no longer needs after playback has stopped.
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ public:
|
|||
|
||||
@see prepareToPlay, getNextAudioBlock
|
||||
*/
|
||||
virtual void releaseResources() = 0;
|
||||
virtual void releaseResources() override = 0;
|
||||
|
||||
/** Called repeatedly to fetch subsequent blocks of audio data.
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ public:
|
|||
|
||||
@see AudioSourceChannelInfo, prepareToPlay, releaseResources
|
||||
*/
|
||||
virtual void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill) = 0;
|
||||
virtual void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill) override = 0;
|
||||
|
||||
/** Shuts down the audio device and clears the audio source.
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ class JUCE_API AudioThumbnailBase : public ChangeBroadcaster,
|
|||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
AudioThumbnailBase() {}
|
||||
virtual ~AudioThumbnailBase() {}
|
||||
AudioThumbnailBase() = default;
|
||||
~AudioThumbnailBase() override = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Clears and resets the thumbnail. */
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Block : public juce::ReferenceCountedObject
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Destructor. */
|
||||
virtual ~Block();
|
||||
~Block() override;
|
||||
|
||||
/** The different block types.
|
||||
@see Block::getType()
|
||||
|
|
@ -263,7 +263,7 @@ public:
|
|||
/** Interface for objects listening to custom program events. */
|
||||
struct ProgramEventListener
|
||||
{
|
||||
virtual ~ProgramEventListener() {}
|
||||
virtual ~ProgramEventListener() = default;
|
||||
|
||||
/** Called whenever a message from a block is received. */
|
||||
virtual void handleProgramEvent (Block& source, const ProgramEventMessage&) = 0;
|
||||
|
|
@ -312,7 +312,7 @@ public:
|
|||
options
|
||||
};
|
||||
|
||||
ConfigMetaData() {}
|
||||
ConfigMetaData() = default;
|
||||
|
||||
// Constructor to work around VS2015 bugs...
|
||||
ConfigMetaData (uint32 itemIndex,
|
||||
|
|
@ -445,7 +445,7 @@ public:
|
|||
/** Interface for objects listening to input data port. */
|
||||
struct DataInputPortListener
|
||||
{
|
||||
virtual ~DataInputPortListener() {}
|
||||
virtual ~DataInputPortListener() = default;
|
||||
|
||||
/** Called whenever a message from a block is received. */
|
||||
virtual void handleIncomingDataPortMessage (Block& source, const void* messageData, size_t messageSize) = 0;
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ namespace juce
|
|||
*/
|
||||
struct LEDColour
|
||||
{
|
||||
LEDColour() noexcept = default;
|
||||
LEDColour (const LEDColour&) noexcept = default;
|
||||
LEDColour& operator= (const LEDColour&) noexcept = default;
|
||||
LEDColour() = default;
|
||||
LEDColour (const LEDColour&) = default;
|
||||
LEDColour& operator= (const LEDColour&) = default;
|
||||
|
||||
LEDColour (uint32 argbColour) noexcept : argb (argbColour) {}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ public:
|
|||
/** An interface to use for LEDGrid rendering. */
|
||||
struct Renderer : public juce::ReferenceCountedObject
|
||||
{
|
||||
virtual ~Renderer();
|
||||
~Renderer() override;
|
||||
virtual void renderLEDGrid (LEDGrid&) = 0;
|
||||
|
||||
/** The Renderer class is reference-counted, so always use a Renderer::Ptr when
|
||||
|
|
|
|||
|
|
@ -38,10 +38,10 @@ class TouchList
|
|||
{
|
||||
public:
|
||||
/** Creates an empty touch list. */
|
||||
TouchList() {}
|
||||
TouchList() = default;
|
||||
|
||||
/** Destructor. */
|
||||
~TouchList() {}
|
||||
~TouchList() = default;
|
||||
|
||||
/** Returns the number of entries in the touch list. */
|
||||
int size() const noexcept { return touches.size(); }
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ private:
|
|||
struct Variable;
|
||||
struct BlockStatement;
|
||||
struct Function;
|
||||
struct AllocatedObject { virtual ~AllocatedObject() noexcept {} };
|
||||
struct AllocatedObject { virtual ~AllocatedObject() = default; };
|
||||
using StatementPtr = Statement*;
|
||||
using ExpPtr = Expression*;
|
||||
using BlockPtr = BlockStatement*;
|
||||
|
|
@ -143,7 +143,7 @@ private:
|
|||
struct CodeLocation
|
||||
{
|
||||
CodeLocation (const String& code, const File& srcFile) noexcept : program (code), location (program.getCharPointer()), sourceFile (srcFile) {}
|
||||
CodeLocation (const CodeLocation& other) noexcept : program (other.program), location (other.location), sourceFile (other.sourceFile) {}
|
||||
CodeLocation (const CodeLocation& other) = default;
|
||||
|
||||
[[noreturn]] void throwError (const String& message) const
|
||||
{
|
||||
|
|
@ -1300,7 +1300,7 @@ private:
|
|||
{
|
||||
struct Visitor
|
||||
{
|
||||
virtual ~Visitor() {}
|
||||
virtual ~Visitor() = default;
|
||||
virtual void operator()(StatementPtr) = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -593,9 +593,9 @@ struct Runner
|
|||
*/
|
||||
struct FunctionExecutionContext
|
||||
{
|
||||
FunctionExecutionContext() noexcept : programCounter (nullptr) {}
|
||||
FunctionExecutionContext (const FunctionExecutionContext&) noexcept = default;
|
||||
FunctionExecutionContext& operator= (const FunctionExecutionContext&) noexcept = default;
|
||||
FunctionExecutionContext() = default;
|
||||
FunctionExecutionContext (const FunctionExecutionContext&) = default;
|
||||
FunctionExecutionContext& operator= (const FunctionExecutionContext&) = default;
|
||||
|
||||
/** */
|
||||
FunctionExecutionContext (Runner& r, const char* functionSignature) noexcept
|
||||
|
|
@ -686,7 +686,7 @@ struct Runner
|
|||
private:
|
||||
//==============================================================================
|
||||
Runner* runner;
|
||||
const uint8* programCounter;
|
||||
const uint8* programCounter = nullptr;
|
||||
const uint8* programEnd;
|
||||
const uint8* programBase;
|
||||
uint8* heapStart;
|
||||
|
|
|
|||
|
|
@ -54,9 +54,9 @@ static uint8 calculatePacketChecksum (const uint8* data, uint32 size) noexcept
|
|||
template <int numBits>
|
||||
struct IntegerWithBitSize
|
||||
{
|
||||
IntegerWithBitSize() noexcept = default;
|
||||
IntegerWithBitSize (const IntegerWithBitSize&) noexcept = default;
|
||||
IntegerWithBitSize& operator= (const IntegerWithBitSize&) noexcept = default;
|
||||
IntegerWithBitSize() = default;
|
||||
IntegerWithBitSize (const IntegerWithBitSize&) = default;
|
||||
IntegerWithBitSize& operator= (const IntegerWithBitSize&) = default;
|
||||
|
||||
IntegerWithBitSize (uint32 v) noexcept : value (v)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public:
|
|||
PhysicalTopologySource (bool startDetached = false);
|
||||
|
||||
/** Destructor. */
|
||||
~PhysicalTopologySource();
|
||||
~PhysicalTopologySource() override;
|
||||
|
||||
/** Returns the current physical topology. */
|
||||
BlockTopology getCurrentTopology() const override;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public:
|
|||
RuleBasedTopologySource (TopologySource&);
|
||||
|
||||
/** Destructor. */
|
||||
~RuleBasedTopologySource();
|
||||
~RuleBasedTopologySource() override;
|
||||
|
||||
//==========================================================================
|
||||
/** Returns the currently active topology. */
|
||||
|
|
@ -50,7 +50,7 @@ public:
|
|||
/** A rule that can transform parts of a topology. */
|
||||
struct Rule
|
||||
{
|
||||
virtual ~Rule() {}
|
||||
virtual ~Rule() = default;
|
||||
|
||||
/** Subclasses should implement this method and use it as their opportunity to
|
||||
examine the given topology and modify it. For example they may want to substitute
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class TopologySource
|
|||
public:
|
||||
//==========================================================================
|
||||
/** Destructor. */
|
||||
virtual ~TopologySource() {}
|
||||
virtual ~TopologySource() = default;
|
||||
|
||||
/** Returns the current topology that this object manages. */
|
||||
virtual BlockTopology getCurrentTopology() const = 0;
|
||||
|
|
@ -47,7 +47,7 @@ public:
|
|||
/** Used to receive callbacks for topology changes */
|
||||
struct Listener
|
||||
{
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
virtual void topologyChanged() = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -39,14 +39,10 @@ class ArrayAllocationBase : public TypeOfCriticalSectionToUse
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Creates an empty array. */
|
||||
ArrayAllocationBase() noexcept
|
||||
{
|
||||
}
|
||||
ArrayAllocationBase() = default;
|
||||
|
||||
/** Destructor. */
|
||||
~ArrayAllocationBase() noexcept
|
||||
{
|
||||
}
|
||||
~ArrayAllocationBase() = default;
|
||||
|
||||
ArrayAllocationBase (ArrayAllocationBase&& other) noexcept
|
||||
: elements (std::move (other.elements)),
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public:
|
|||
//==============================================================================
|
||||
DynamicObject();
|
||||
DynamicObject (const DynamicObject&);
|
||||
~DynamicObject();
|
||||
~DynamicObject() override;
|
||||
|
||||
using Ptr = ReferenceCountedObjectPtr<DynamicObject>;
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ public:
|
|||
*/
|
||||
explicit HashMap (int numberOfSlots = defaultHashTableSize,
|
||||
HashFunctionType hashFunction = HashFunctionType())
|
||||
: hashFunctionToUse (hashFunction), totalNumItems (0)
|
||||
: hashFunctionToUse (hashFunction)
|
||||
{
|
||||
hashSlots.insertMultiple (0, nullptr, numberOfSlots);
|
||||
}
|
||||
|
|
@ -479,7 +479,7 @@ private:
|
|||
|
||||
HashFunctionType hashFunctionToUse;
|
||||
Array<HashEntry*> hashSlots;
|
||||
int totalNumItems;
|
||||
int totalNumItems = 0;
|
||||
TypeOfCriticalSectionToUse lock;
|
||||
|
||||
int generateHashFor (KeyTypeParameter key, int numSlots) const
|
||||
|
|
|
|||
|
|
@ -70,10 +70,10 @@ class ListenerList
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Creates an empty list. */
|
||||
ListenerList() {}
|
||||
ListenerList() = default;
|
||||
|
||||
/** Destructor. */
|
||||
~ListenerList() {}
|
||||
~ListenerList() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Adds a listener to the list.
|
||||
|
|
@ -194,7 +194,7 @@ public:
|
|||
: list (listToIterate), index (listToIterate.size())
|
||||
{}
|
||||
|
||||
~Iterator() noexcept {}
|
||||
~Iterator() = default;
|
||||
|
||||
//==============================================================================
|
||||
bool next() noexcept
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public:
|
|||
//==============================================================================
|
||||
/** Creates an empty set. */
|
||||
// VS2013 doesn't allow defaulted noexcept constructors.
|
||||
SortedSet() noexcept {}
|
||||
SortedSet() = default;
|
||||
|
||||
/** Creates a copy of another set. */
|
||||
SortedSet (const SortedSet&) = default;
|
||||
|
|
@ -76,7 +76,7 @@ public:
|
|||
SortedSet& operator= (SortedSet&& other) noexcept { data = std::move (other.data); return *this; }
|
||||
|
||||
/** Destructor. */
|
||||
~SortedSet() noexcept {}
|
||||
~SortedSet() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Compares this set to another one.
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class SparseSet
|
|||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
SparseSet() noexcept {}
|
||||
SparseSet() = default;
|
||||
|
||||
SparseSet (const SparseSet&) = default;
|
||||
SparseSet& operator= (const SparseSet&) = default;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public:
|
|||
|
||||
You can use its operator= method to point it at a proper file.
|
||||
*/
|
||||
File() noexcept {}
|
||||
File() = default;
|
||||
|
||||
/** Creates a file from an absolute path.
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ public:
|
|||
File (const File&);
|
||||
|
||||
/** Destructor. */
|
||||
~File() noexcept {}
|
||||
~File() = default;
|
||||
|
||||
/** Sets the file based on an absolute pathname.
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ public:
|
|||
class Visitor
|
||||
{
|
||||
public:
|
||||
virtual ~Visitor() {}
|
||||
virtual ~Visitor() = default;
|
||||
virtual void visit (const Scope&) = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class NormalisableRange
|
|||
{
|
||||
public:
|
||||
/** Creates a continuous range that performs a dummy mapping. */
|
||||
NormalisableRange() noexcept {}
|
||||
NormalisableRange() = default;
|
||||
|
||||
NormalisableRange (const NormalisableRange&) = default;
|
||||
NormalisableRange& operator= (const NormalisableRange&) = default;
|
||||
|
|
|
|||
|
|
@ -97,9 +97,7 @@ public:
|
|||
After creation, you can resize the array using the malloc(), calloc(),
|
||||
or realloc() methods.
|
||||
*/
|
||||
HeapBlock() noexcept
|
||||
{
|
||||
}
|
||||
HeapBlock() = default;
|
||||
|
||||
/** Creates a HeapBlock containing a number of elements.
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ private:
|
|||
//==============================================================================
|
||||
struct BacktraceMapHolder
|
||||
{
|
||||
BacktraceMapHolder() noexcept {}
|
||||
BacktraceMapHolder() = default;
|
||||
|
||||
~BacktraceMapHolder()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ private:
|
|||
class LeakCounter
|
||||
{
|
||||
public:
|
||||
LeakCounter() noexcept {}
|
||||
LeakCounter() = default;
|
||||
|
||||
~LeakCounter()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class OptionalScopedPointer
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Creates an empty OptionalScopedPointer. */
|
||||
OptionalScopedPointer() : shouldDelete (false) {}
|
||||
OptionalScopedPointer() = default;
|
||||
|
||||
/** Creates an OptionalScopedPointer to point to a given object, and specifying whether
|
||||
the OptionalScopedPointer will delete it.
|
||||
|
|
@ -177,7 +177,7 @@ public:
|
|||
private:
|
||||
//==============================================================================
|
||||
ScopedPointer<ObjectType> object;
|
||||
bool shouldDelete;
|
||||
bool shouldDelete = false;
|
||||
|
||||
// This is here to avoid people accidentally taking a second owned copy of
|
||||
// a scoped pointer, which is almost certainly not what you intended to do!
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ public:
|
|||
protected:
|
||||
//==============================================================================
|
||||
/** Creates the reference-counted object (with an initial ref count of zero). */
|
||||
ReferenceCountedObject() {}
|
||||
ReferenceCountedObject() = default;
|
||||
|
||||
/** Copying from another object does not affect this one's reference-count. */
|
||||
ReferenceCountedObject (const ReferenceCountedObject&) noexcept {}
|
||||
|
|
@ -187,7 +187,7 @@ public:
|
|||
protected:
|
||||
//==============================================================================
|
||||
/** Creates the reference-counted object (with an initial ref count of zero). */
|
||||
SingleThreadedReferenceCountedObject() {}
|
||||
SingleThreadedReferenceCountedObject() = default;
|
||||
|
||||
/** Copying from another object does not affect this one's reference-count. */
|
||||
SingleThreadedReferenceCountedObject (const SingleThreadedReferenceCountedObject&) {}
|
||||
|
|
@ -246,7 +246,7 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** Creates a pointer to a null object. */
|
||||
ReferenceCountedObjectPtr() noexcept {}
|
||||
ReferenceCountedObjectPtr() = default;
|
||||
|
||||
/** Creates a pointer to a null object. */
|
||||
ReferenceCountedObjectPtr (decltype (nullptr)) noexcept {}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class ScopedPointer
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Creates a ScopedPointer containing a null pointer. */
|
||||
inline ScopedPointer() noexcept {}
|
||||
inline ScopedPointer() = default;
|
||||
|
||||
/** Creates a ScopedPointer containing a null pointer. */
|
||||
inline ScopedPointer (decltype (nullptr)) noexcept {}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace juce
|
|||
template <typename Type, typename MutexType, bool onlyCreateOncePerRun>
|
||||
struct SingletonHolder : private MutexType // (inherited so we can use the empty-base-class optimisation)
|
||||
{
|
||||
SingletonHolder() noexcept {}
|
||||
SingletonHolder() = default;
|
||||
|
||||
~SingletonHolder()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class WeakReference
|
|||
{
|
||||
public:
|
||||
/** Creates a null WeakReference. */
|
||||
inline WeakReference() noexcept {}
|
||||
inline WeakReference() = default;
|
||||
|
||||
/** Creates a WeakReference that points at the given object. */
|
||||
WeakReference (ObjectType* object) : holder (getRef (object)) {}
|
||||
|
|
@ -152,7 +152,7 @@ public:
|
|||
class Master
|
||||
{
|
||||
public:
|
||||
Master() noexcept {}
|
||||
Master() = default;
|
||||
|
||||
~Master() noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class JUCE_API WebInputStream : public InputStream
|
|||
class JUCE_API Listener
|
||||
{
|
||||
public:
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
|
||||
virtual bool postDataSendProgress (WebInputStream& /*request*/, int /*bytesSent*/, int /*totalBytes*/) { return true; }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -38,10 +38,10 @@ class JUCE_API InputSource
|
|||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
InputSource() noexcept {}
|
||||
InputSource() = default;
|
||||
|
||||
/** Destructor. */
|
||||
virtual ~InputSource() {}
|
||||
virtual ~InputSource() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns a new InputStream to read this item.
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class JUCE_API InputStream
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~InputStream() {}
|
||||
virtual ~InputStream() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns the total number of bytes available for reading in this stream.
|
||||
|
|
@ -253,7 +253,7 @@ public:
|
|||
|
||||
protected:
|
||||
//==============================================================================
|
||||
InputStream() noexcept {}
|
||||
InputStream() = default;
|
||||
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (InputStream)
|
||||
|
|
|
|||
|
|
@ -44,10 +44,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
inline CharPointer_ASCII (const CharPointer_ASCII& other) noexcept
|
||||
: data (other.data)
|
||||
{
|
||||
}
|
||||
inline CharPointer_ASCII (const CharPointer_ASCII& other) = default;
|
||||
|
||||
inline CharPointer_ASCII operator= (const CharPointer_ASCII other) noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -45,10 +45,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
inline CharPointer_UTF16 (const CharPointer_UTF16& other) noexcept
|
||||
: data (other.data)
|
||||
{
|
||||
}
|
||||
inline CharPointer_UTF16 (const CharPointer_UTF16& other) = default;
|
||||
|
||||
inline CharPointer_UTF16 operator= (CharPointer_UTF16 other) noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -41,10 +41,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
inline CharPointer_UTF32 (const CharPointer_UTF32& other) noexcept
|
||||
: data (other.data)
|
||||
{
|
||||
}
|
||||
inline CharPointer_UTF32 (const CharPointer_UTF32& other) = default;
|
||||
|
||||
inline CharPointer_UTF32 operator= (CharPointer_UTF32 other) noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -41,10 +41,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
inline CharPointer_UTF8 (const CharPointer_UTF8& other) noexcept
|
||||
: data (other.data)
|
||||
{
|
||||
}
|
||||
inline CharPointer_UTF8 (const CharPointer_UTF8& other) = default;
|
||||
|
||||
inline CharPointer_UTF8 operator= (CharPointer_UTF8 other) noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -133,8 +133,8 @@ private:
|
|||
class JUCE_API DummyCriticalSection
|
||||
{
|
||||
public:
|
||||
inline DummyCriticalSection() noexcept {}
|
||||
inline ~DummyCriticalSection() noexcept {}
|
||||
inline DummyCriticalSection() = default;
|
||||
inline ~DummyCriticalSection() = default;
|
||||
|
||||
inline void enter() const noexcept {}
|
||||
inline bool tryEnter() const noexcept { return true; }
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public:
|
|||
/** Creates an unopened DynamicLibrary object.
|
||||
Call open() to actually open one.
|
||||
*/
|
||||
DynamicLibrary() noexcept {}
|
||||
DynamicLibrary() = default;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ namespace juce
|
|||
class JUCE_API SpinLock
|
||||
{
|
||||
public:
|
||||
inline SpinLock() noexcept {}
|
||||
inline ~SpinLock() noexcept {}
|
||||
inline SpinLock() = default;
|
||||
inline ~SpinLock() = default;
|
||||
|
||||
/** Acquires the lock.
|
||||
This will block until the lock has been successfully acquired by this thread.
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ public:
|
|||
class JUCE_API Listener
|
||||
{
|
||||
public:
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
|
||||
/** Called if Thread::signalThreadShouldExit was called.
|
||||
@see Thread::threadShouldExit, Thread::addListener, Thread::removeListener
|
||||
|
|
|
|||
|
|
@ -48,9 +48,7 @@ class ThreadLocalValue
|
|||
{
|
||||
public:
|
||||
/** */
|
||||
ThreadLocalValue() noexcept
|
||||
{
|
||||
}
|
||||
ThreadLocalValue() = default;
|
||||
|
||||
/** Destructor.
|
||||
When this object is deleted, all the value objects for all threads will be deleted.
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ public:
|
|||
class JUCE_API JobSelector
|
||||
{
|
||||
public:
|
||||
virtual ~JobSelector() {}
|
||||
virtual ~JobSelector() = default;
|
||||
|
||||
/** Should return true if the specified thread matches your criteria for whatever
|
||||
operation that this object is being used for.
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class JUCE_API TimeSliceClient
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~TimeSliceClient() {}
|
||||
virtual ~TimeSliceClient() = default;
|
||||
|
||||
/** Called back by a TimeSliceThread.
|
||||
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ private:
|
|||
#if JUCE_DEBUG
|
||||
struct OpenStreamCounter
|
||||
{
|
||||
OpenStreamCounter() {}
|
||||
OpenStreamCounter() = default;
|
||||
~OpenStreamCounter();
|
||||
|
||||
int numOpenStreams = 0;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ public:
|
|||
int minimumTransactionsToKeep = 30);
|
||||
|
||||
/** Destructor. */
|
||||
~UndoManager();
|
||||
~UndoManager() override;
|
||||
|
||||
//==============================================================================
|
||||
/** Deletes all stored actions in the list. */
|
||||
|
|
|
|||
|
|
@ -40,11 +40,11 @@ class JUCE_API UndoableAction
|
|||
{
|
||||
protected:
|
||||
/** Creates an action. */
|
||||
UndoableAction() noexcept {}
|
||||
UndoableAction() = default;
|
||||
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~UndoableAction() {}
|
||||
virtual ~UndoableAction() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Overridden by a subclass to perform the action.
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ private:
|
|||
|
||||
//==============================================================================
|
||||
template <typename Type>
|
||||
inline CachedValue<Type>::CachedValue() {}
|
||||
inline CachedValue<Type>::CachedValue() = default;
|
||||
|
||||
template <typename Type>
|
||||
inline CachedValue<Type>::CachedValue (ValueTree& v, const Identifier& i, UndoManager* um)
|
||||
|
|
|
|||
|
|
@ -138,8 +138,8 @@ public:
|
|||
class JUCE_API Listener
|
||||
{
|
||||
public:
|
||||
Listener() {}
|
||||
virtual ~Listener() {}
|
||||
Listener() = default;
|
||||
virtual ~Listener() = default;
|
||||
|
||||
/** Called when a Value object is changed.
|
||||
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ public:
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
|
||||
/** This method is called when a property of this tree (or of one of its sub-trees) is changed.
|
||||
Note that when you register a listener to a tree, it will receive this callback for
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class ValueWithDefault
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Creates an unitialised ValueWithDefault. Initialise it using one of the referTo() methods. */
|
||||
ValueWithDefault() {}
|
||||
ValueWithDefault() = default;
|
||||
|
||||
/** Creates an ValueWithDefault object. The default value will be an empty var. */
|
||||
ValueWithDefault (ValueTree& tree, const Identifier& propertyID, UndoManager* um)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** Create a zero-sized AudioBlock. */
|
||||
forcedinline AudioBlock() noexcept {}
|
||||
forcedinline AudioBlock() noexcept = default;
|
||||
|
||||
/** Creates an AudioBlock from a pointer to an array of channels.
|
||||
AudioBlock does not copy nor own the memory pointed to by dataToUse.
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ struct SIMDRegister
|
|||
vSIMDType value;
|
||||
|
||||
/** Default constructor. */
|
||||
inline SIMDRegister() noexcept {}
|
||||
inline SIMDRegister() noexcept = default;
|
||||
|
||||
/** Constructs an object from the native SIMD type. */
|
||||
inline SIMDRegister (vSIMDType a) noexcept : value (a) {}
|
||||
|
|
@ -118,7 +118,7 @@ struct SIMDRegister
|
|||
inline SIMDRegister (Type s) noexcept { *this = s; }
|
||||
|
||||
/** Destrutor. */
|
||||
inline ~SIMDRegister() noexcept {}
|
||||
inline ~SIMDRegister() noexcept = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns the number of elements in this vector. */
|
||||
|
|
|
|||
|
|
@ -183,8 +183,7 @@ public:
|
|||
|
||||
@see initialise
|
||||
*/
|
||||
LookupTableTransform()
|
||||
{}
|
||||
LookupTableTransform() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Creates and initialises a LookupTableTransform object.
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ template <typename FloatType>
|
|||
class Bias
|
||||
{
|
||||
public:
|
||||
Bias() noexcept {}
|
||||
Bias() noexcept = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Sets the DC bias
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ template <typename FloatType>
|
|||
class Gain
|
||||
{
|
||||
public:
|
||||
Gain() noexcept {}
|
||||
Gain() noexcept = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Applies a new gain as a linear value. */
|
||||
|
|
|
|||
|
|
@ -44,8 +44,7 @@ public:
|
|||
using NumericType = typename SampleTypeHelpers::ElementType<SampleType>::Type;
|
||||
|
||||
/** Creates an uninitialised oscillator. Call initialise before first use. */
|
||||
Oscillator()
|
||||
{}
|
||||
Oscillator() = default;
|
||||
|
||||
/** Creates an oscillator with a periodic input function (-pi..pi).
|
||||
|
||||
|
|
|
|||
|
|
@ -39,8 +39,7 @@ class Reverb
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Creates an uninitialised Reverb processor. Call prepare() before first use. */
|
||||
Reverb()
|
||||
{}
|
||||
Reverb() = default;
|
||||
|
||||
//==============================================================================
|
||||
using Parameters = juce::Reverb::Parameters;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class JUCE_API ActionListener
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~ActionListener() {}
|
||||
virtual ~ActionListener() = default;
|
||||
|
||||
/** Overridden by your subclass to receive the callback.
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class JUCE_API ChangeListener
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~ChangeListener() {}
|
||||
virtual ~ChangeListener() = default;
|
||||
|
||||
/** Your subclass should implement this method to receive the callback.
|
||||
@param source the ChangeBroadcaster that triggered the callback.
|
||||
|
|
|
|||
|
|
@ -49,10 +49,10 @@ class JUCE_API CallbackMessage : public MessageManager::MessageBase
|
|||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
CallbackMessage() noexcept {}
|
||||
CallbackMessage() = default;
|
||||
|
||||
/** Destructor. */
|
||||
~CallbackMessage() {}
|
||||
~CallbackMessage() override = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Called when the message is delivered.
|
||||
|
|
@ -63,7 +63,7 @@ public:
|
|||
Note that like all other messages, this object will be deleted immediately
|
||||
after this method has been invoked.
|
||||
*/
|
||||
virtual void messageCallback() = 0;
|
||||
virtual void messageCallback() override = 0;
|
||||
|
||||
private:
|
||||
// Avoid the leak-detector because for plugins, the host can unload our DLL with undelivered
|
||||
|
|
|
|||
|
|
@ -186,8 +186,8 @@ public:
|
|||
class JUCE_API MessageBase : public ReferenceCountedObject
|
||||
{
|
||||
public:
|
||||
MessageBase() noexcept {}
|
||||
virtual ~MessageBase() {}
|
||||
MessageBase() = default;
|
||||
~MessageBase() override = default;
|
||||
|
||||
virtual void messageCallback() = 0;
|
||||
bool post();
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public:
|
|||
const RectangleList<int>& initialClip);
|
||||
|
||||
/** Destructor. */
|
||||
~LowLevelGraphicsSoftwareRenderer();
|
||||
~LowLevelGraphicsSoftwareRenderer() override;
|
||||
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LowLevelGraphicsSoftwareRenderer)
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
float alpha) = 0;
|
||||
|
||||
/** Destructor. */
|
||||
virtual ~ImageEffectFilter() {}
|
||||
virtual ~ImageEffectFilter() = default;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public:
|
|||
/** Creates an attributed string with the given text. */
|
||||
explicit AttributedString (const String& newString) { setText (newString); }
|
||||
|
||||
AttributedString (const AttributedString&) = default;
|
||||
AttributedString (const AttributedString&) = default;
|
||||
AttributedString& operator= (const AttributedString&) = default;
|
||||
|
||||
// VS2013 can't default move constructors and assignments
|
||||
|
|
@ -152,7 +152,7 @@ public:
|
|||
public:
|
||||
Attribute() = default;
|
||||
|
||||
Attribute (const Attribute&) = default;
|
||||
Attribute (const Attribute&) = default;
|
||||
Attribute& operator= (const Attribute&) = default;
|
||||
|
||||
// VS2013 can't default move constructors and assignments
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** Destructor. */
|
||||
virtual ~Typeface();
|
||||
~Typeface() override;
|
||||
|
||||
/** Returns true if this typeface can be used to render the specified font.
|
||||
When called, the font will already have been checked to make sure that its name and
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** Creates an empty RectangleList */
|
||||
RectangleList() noexcept {}
|
||||
RectangleList() = default;
|
||||
|
||||
/** Creates a copy of another list */
|
||||
RectangleList (const RectangleList& other) : rects (other.rects)
|
||||
|
|
|
|||
|
|
@ -360,9 +360,9 @@ public:
|
|||
class BitmapDataReleaser
|
||||
{
|
||||
protected:
|
||||
BitmapDataReleaser() {}
|
||||
BitmapDataReleaser() = default;
|
||||
public:
|
||||
virtual ~BitmapDataReleaser() {}
|
||||
virtual ~BitmapDataReleaser() = default;
|
||||
};
|
||||
|
||||
std::unique_ptr<BitmapDataReleaser> dataReleaser;
|
||||
|
|
@ -444,7 +444,7 @@ class JUCE_API ImagePixelData : public ReferenceCountedObject
|
|||
{
|
||||
public:
|
||||
ImagePixelData (Image::PixelFormat, int width, int height);
|
||||
~ImagePixelData();
|
||||
~ImagePixelData() override;
|
||||
|
||||
using Ptr = ReferenceCountedObjectPtr<ImagePixelData>;
|
||||
|
||||
|
|
@ -475,7 +475,7 @@ public:
|
|||
/** Used to receive callbacks for image data changes */
|
||||
struct Listener
|
||||
{
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
|
||||
virtual void imageDataChanged (ImagePixelData*) = 0;
|
||||
virtual void imageDataBeingDeleted (ImagePixelData*) = 0;
|
||||
|
|
|
|||
|
|
@ -44,11 +44,11 @@ class JUCE_API ImageFileFormat
|
|||
protected:
|
||||
//==============================================================================
|
||||
/** Creates an ImageFormat. */
|
||||
ImageFileFormat() {}
|
||||
ImageFileFormat() = default;
|
||||
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~ImageFileFormat() {}
|
||||
virtual ~ImageFileFormat() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Returns a description of this file format.
|
||||
|
|
|
|||
|
|
@ -43,14 +43,10 @@ namespace RenderingHelpers
|
|||
class TranslationOrTransform
|
||||
{
|
||||
public:
|
||||
TranslationOrTransform() noexcept {}
|
||||
TranslationOrTransform() = default;
|
||||
TranslationOrTransform (Point<int> origin) noexcept : offset (origin) {}
|
||||
|
||||
TranslationOrTransform (const TranslationOrTransform& other) noexcept
|
||||
: complexTransform (other.complexTransform), offset (other.offset),
|
||||
isOnlyTranslated (other.isOnlyTranslated), isRotated (other.isRotated)
|
||||
{
|
||||
}
|
||||
TranslationOrTransform (const TranslationOrTransform& other) = default;
|
||||
|
||||
AffineTransform getTransform() const noexcept
|
||||
{
|
||||
|
|
@ -156,7 +152,7 @@ public:
|
|||
reset();
|
||||
}
|
||||
|
||||
~GlyphCache()
|
||||
~GlyphCache() override
|
||||
{
|
||||
getSingletonPointer() = nullptr;
|
||||
}
|
||||
|
|
@ -283,7 +279,7 @@ template <class RendererType>
|
|||
class CachedGlyphEdgeTable : public ReferenceCountedObject
|
||||
{
|
||||
public:
|
||||
CachedGlyphEdgeTable() {}
|
||||
CachedGlyphEdgeTable() = default;
|
||||
|
||||
void draw (RendererType& state, Point<float> pos) const
|
||||
{
|
||||
|
|
@ -1397,7 +1393,7 @@ namespace EdgeTableFillers
|
|||
private:
|
||||
struct BresenhamInterpolator
|
||||
{
|
||||
BresenhamInterpolator() noexcept {}
|
||||
BresenhamInterpolator() = default;
|
||||
|
||||
void set (int n1, int n2, int steps, int offsetInt) noexcept
|
||||
{
|
||||
|
|
@ -1628,8 +1624,8 @@ struct ClipRegions
|
|||
{
|
||||
struct Base : public SingleThreadedReferenceCountedObject
|
||||
{
|
||||
Base() {}
|
||||
virtual ~Base() {}
|
||||
Base() = default;
|
||||
~Base() override = default;
|
||||
|
||||
using Ptr = ReferenceCountedObjectPtr<Base>;
|
||||
|
||||
|
|
@ -2070,7 +2066,7 @@ struct ClipRegions
|
|||
|
||||
Ptr toEdgeTable() const { return *new EdgeTableRegion (clip); }
|
||||
|
||||
RectangleListRegion& operator= (const RectangleListRegion&);
|
||||
RectangleListRegion& operator= (const RectangleListRegion&) = delete;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -2528,10 +2524,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
SoftwareRendererSavedState (const SoftwareRendererSavedState& other)
|
||||
: BaseClass (other), image (other.image), font (other.font)
|
||||
{
|
||||
}
|
||||
SoftwareRendererSavedState (const SoftwareRendererSavedState& other) = default;
|
||||
|
||||
SoftwareRendererSavedState* beginTransparencyLayer (float opacity)
|
||||
{
|
||||
|
|
@ -2668,7 +2661,7 @@ public:
|
|||
Font font;
|
||||
|
||||
private:
|
||||
SoftwareRendererSavedState& operator= (const SoftwareRendererSavedState&);
|
||||
SoftwareRendererSavedState& operator= (const SoftwareRendererSavedState&) = delete;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -2680,7 +2673,7 @@ public:
|
|||
: currentState (initialState)
|
||||
{}
|
||||
|
||||
SavedStateStack() noexcept {}
|
||||
SavedStateStack() = default;
|
||||
|
||||
void initialise (StateObjectType* state)
|
||||
{
|
||||
|
|
@ -2764,7 +2757,7 @@ public:
|
|||
|
||||
protected:
|
||||
StackBasedLowLevelGraphicsContext (SavedStateType* initialState) : stack (initialState) {}
|
||||
StackBasedLowLevelGraphicsContext() {}
|
||||
StackBasedLowLevelGraphicsContext() = default;
|
||||
|
||||
RenderingHelpers::SavedStateStack<SavedStateType> stack;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ public:
|
|||
{
|
||||
public:
|
||||
/** Destructor. */
|
||||
virtual ~Listener() {}
|
||||
virtual ~Listener() = default;
|
||||
|
||||
/** Called when the button is clicked. */
|
||||
virtual void buttonClicked (Button*) = 0;
|
||||
|
|
@ -367,7 +367,7 @@ public:
|
|||
*/
|
||||
struct JUCE_API LookAndFeelMethods
|
||||
{
|
||||
virtual ~LookAndFeelMethods() {}
|
||||
virtual ~LookAndFeelMethods() = default;
|
||||
|
||||
virtual void drawButtonBackground (Graphics&, Button&, const Colour& backgroundColour,
|
||||
bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) = 0;
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ public:
|
|||
/** This abstract base class is implemented by LookAndFeel classes. */
|
||||
struct JUCE_API LookAndFeelMethods
|
||||
{
|
||||
virtual ~LookAndFeelMethods() {}
|
||||
virtual ~LookAndFeelMethods() = default;
|
||||
|
||||
virtual void drawImageButton (Graphics&, Image*,
|
||||
int imageX, int imageY, int imageW, int imageH,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace juce
|
|||
@see ApplicationCommandInfo, ApplicationCommandManager,
|
||||
ApplicationCommandTarget, KeyPressMappingSet
|
||||
*/
|
||||
typedef int CommandID;
|
||||
using CommandID = int;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ class JUCE_API ApplicationCommandManagerListener
|
|||
public:
|
||||
//==============================================================================
|
||||
/** Destructor. */
|
||||
virtual ~ApplicationCommandManagerListener() {}
|
||||
virtual ~ApplicationCommandManagerListener() = default;
|
||||
|
||||
/** Called when an app command is about to be invoked. */
|
||||
virtual void applicationCommandInvoked (const ApplicationCommandTarget::InvocationInfo&) = 0;
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ namespace juce
|
|||
class JUCE_API CachedComponentImage
|
||||
{
|
||||
public:
|
||||
CachedComponentImage() noexcept {}
|
||||
virtual ~CachedComponentImage() {}
|
||||
CachedComponentImage() = default;
|
||||
virtual ~CachedComponentImage() = default;
|
||||
|
||||
//==============================================================================
|
||||
/** Called as part of the parent component's paint method, this must draw
|
||||
|
|
|
|||
|
|
@ -2132,7 +2132,7 @@ public:
|
|||
{
|
||||
public:
|
||||
/** Creates a null SafePointer. */
|
||||
SafePointer() noexcept {}
|
||||
SafePointer() = default;
|
||||
|
||||
/** Creates a SafePointer that points at the given component. */
|
||||
SafePointer (ComponentType* component) : weakRef (component) {}
|
||||
|
|
@ -2205,7 +2205,7 @@ public:
|
|||
/** Creates a Positioner which can control the specified component. */
|
||||
explicit Positioner (Component& component) noexcept;
|
||||
/** Destructor. */
|
||||
virtual ~Positioner() {}
|
||||
virtual ~Positioner() = default;
|
||||
|
||||
/** Returns the component that this positioner controls. */
|
||||
Component& getComponent() const noexcept { return component; }
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue