1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Removed some extraneous semicolons

This commit is contained in:
jules 2017-04-21 11:15:07 +01:00
parent 3a3f118fbb
commit d36156c620
6 changed files with 20 additions and 20 deletions

View file

@ -141,14 +141,14 @@ public:
virtual bool getCurrentPosition (CurrentPositionInfo& result) = 0; virtual bool getCurrentPosition (CurrentPositionInfo& result) = 0;
/** Returns true if this object can control the transport. */ /** Returns true if this object can control the transport. */
virtual bool canControlTransport() { return false; }; virtual bool canControlTransport() { return false; }
/** Starts or stops the audio. */ /** Starts or stops the audio. */
virtual void transportPlay (bool shouldStartPlaying) { ignoreUnused (shouldStartPlaying); }; virtual void transportPlay (bool shouldStartPlaying) { ignoreUnused (shouldStartPlaying); }
/** Starts or stops recording the audio. */ /** Starts or stops recording the audio. */
virtual void transportRecord (bool shouldStartRecording) { ignoreUnused (shouldStartRecording); }; virtual void transportRecord (bool shouldStartRecording) { ignoreUnused (shouldStartRecording); }
/** Rewinds the audio. */ /** Rewinds the audio. */
virtual void transportRewind() {}; virtual void transportRewind() {}
}; };

View file

@ -1309,8 +1309,8 @@ public:
These functions are deprecated: use the methods provided in the AudioChannelSet These functions are deprecated: use the methods provided in the AudioChannelSet
class. class.
*/ */
JUCE_DEPRECATED_WITH_BODY (const String getInputSpeakerArrangement() const noexcept, { return cachedInputSpeakerArrString; }); JUCE_DEPRECATED_WITH_BODY (const String getInputSpeakerArrangement() const noexcept, { return cachedInputSpeakerArrString; })
JUCE_DEPRECATED_WITH_BODY (const String getOutputSpeakerArrangement() const noexcept, { return cachedOutputSpeakerArrString; }); JUCE_DEPRECATED_WITH_BODY (const String getOutputSpeakerArrangement() const noexcept, { return cachedOutputSpeakerArrString; })
/** Returns the name of one of the processor's input channels. /** Returns the name of one of the processor's input channels.
@ -1558,7 +1558,7 @@ private:
void processBypassed (AudioBuffer<floatType>&, MidiBuffer&); void processBypassed (AudioBuffer<floatType>&, MidiBuffer&);
// This method is no longer used - you can delete it from your AudioProcessor classes. // This method is no longer used - you can delete it from your AudioProcessor classes.
JUCE_DEPRECATED_WITH_BODY (virtual bool silenceInProducesSilenceOut() const, { return false; }); JUCE_DEPRECATED_WITH_BODY (virtual bool silenceInProducesSilenceOut() const, { return false; })
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioProcessor) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioProcessor)
}; };

View file

@ -113,8 +113,8 @@ public:
VariantType_Int() noexcept {} VariantType_Int() noexcept {}
static const VariantType_Int instance; static const VariantType_Int instance;
int toInt (const ValueUnion& data) const noexcept override { return data.intValue; }; int toInt (const ValueUnion& data) const noexcept override { return data.intValue; }
int64 toInt64 (const ValueUnion& data) const noexcept override { return (int64) data.intValue; }; int64 toInt64 (const ValueUnion& data) const noexcept override { return (int64) data.intValue; }
double toDouble (const ValueUnion& data) const noexcept override { return (double) data.intValue; } double toDouble (const ValueUnion& data) const noexcept override { return (double) data.intValue; }
String toString (const ValueUnion& data) const override { return String (data.intValue); } String toString (const ValueUnion& data) const override { return String (data.intValue); }
bool toBool (const ValueUnion& data) const noexcept override { return data.intValue != 0; } bool toBool (const ValueUnion& data) const noexcept override { return data.intValue != 0; }
@ -143,8 +143,8 @@ public:
VariantType_Int64() noexcept {} VariantType_Int64() noexcept {}
static const VariantType_Int64 instance; static const VariantType_Int64 instance;
int toInt (const ValueUnion& data) const noexcept override { return (int) data.int64Value; }; int toInt (const ValueUnion& data) const noexcept override { return (int) data.int64Value; }
int64 toInt64 (const ValueUnion& data) const noexcept override { return data.int64Value; }; int64 toInt64 (const ValueUnion& data) const noexcept override { return data.int64Value; }
double toDouble (const ValueUnion& data) const noexcept override { return (double) data.int64Value; } double toDouble (const ValueUnion& data) const noexcept override { return (double) data.int64Value; }
String toString (const ValueUnion& data) const override { return String (data.int64Value); } String toString (const ValueUnion& data) const override { return String (data.int64Value); }
bool toBool (const ValueUnion& data) const noexcept override { return data.int64Value != 0; } bool toBool (const ValueUnion& data) const noexcept override { return data.int64Value != 0; }
@ -173,8 +173,8 @@ public:
VariantType_Double() noexcept {} VariantType_Double() noexcept {}
static const VariantType_Double instance; static const VariantType_Double instance;
int toInt (const ValueUnion& data) const noexcept override { return (int) data.doubleValue; }; int toInt (const ValueUnion& data) const noexcept override { return (int) data.doubleValue; }
int64 toInt64 (const ValueUnion& data) const noexcept override { return (int64) data.doubleValue; }; int64 toInt64 (const ValueUnion& data) const noexcept override { return (int64) data.doubleValue; }
double toDouble (const ValueUnion& data) const noexcept override { return data.doubleValue; } double toDouble (const ValueUnion& data) const noexcept override { return data.doubleValue; }
String toString (const ValueUnion& data) const override { return String (data.doubleValue, 20); } String toString (const ValueUnion& data) const override { return String (data.doubleValue, 20); }
bool toBool (const ValueUnion& data) const noexcept override { return data.doubleValue != 0; } bool toBool (const ValueUnion& data) const noexcept override { return data.doubleValue != 0; }
@ -200,8 +200,8 @@ public:
VariantType_Bool() noexcept {} VariantType_Bool() noexcept {}
static const VariantType_Bool instance; static const VariantType_Bool instance;
int toInt (const ValueUnion& data) const noexcept override { return data.boolValue ? 1 : 0; }; int toInt (const ValueUnion& data) const noexcept override { return data.boolValue ? 1 : 0; }
int64 toInt64 (const ValueUnion& data) const noexcept override { return data.boolValue ? 1 : 0; }; int64 toInt64 (const ValueUnion& data) const noexcept override { return data.boolValue ? 1 : 0; }
double toDouble (const ValueUnion& data) const noexcept override { return data.boolValue ? 1.0 : 0.0; } double toDouble (const ValueUnion& data) const noexcept override { return data.boolValue ? 1.0 : 0.0; }
String toString (const ValueUnion& data) const override { return String::charToString (data.boolValue ? (juce_wchar) '1' : (juce_wchar) '0'); } String toString (const ValueUnion& data) const override { return String::charToString (data.boolValue ? (juce_wchar) '1' : (juce_wchar) '0'); }
bool toBool (const ValueUnion& data) const noexcept override { return data.boolValue; } bool toBool (const ValueUnion& data) const noexcept override { return data.boolValue; }

View file

@ -96,7 +96,7 @@ public:
const StringArray& getAllValues() const noexcept { return values; } const StringArray& getAllValues() const noexcept { return values; }
/** Returns the number of strings in the array */ /** Returns the number of strings in the array */
inline int size() const noexcept { return keys.size(); }; inline int size() const noexcept { return keys.size(); }
//============================================================================== //==============================================================================

View file

@ -2228,18 +2228,18 @@ public:
/** Returns the object that was set by setCachedComponentImage(). /** Returns the object that was set by setCachedComponentImage().
@see setCachedComponentImage @see setCachedComponentImage
*/ */
CachedComponentImage* getCachedComponentImage() const noexcept { return cachedImage; } CachedComponentImage* getCachedComponentImage() const noexcept { return cachedImage; }
/** Sets a flag to indicate whether mouse drag events on this Component should be ignored when it is inside a /** Sets a flag to indicate whether mouse drag events on this Component should be ignored when it is inside a
Viewport with drag-to-scroll functionality enabled. This is useful for Components such as sliders that Viewport with drag-to-scroll functionality enabled. This is useful for Components such as sliders that
should not move their parent Viewport when dragged. should not move their parent Viewport when dragged.
*/ */
void setViewportIgnoreDragFlag (bool ignoreDrag) noexcept { flags.viewportIgnoreDragFlag = ignoreDrag; }; void setViewportIgnoreDragFlag (bool ignoreDrag) noexcept { flags.viewportIgnoreDragFlag = ignoreDrag; }
/** Retrieves the current state of the Viewport drag-to-scroll functionality flag. /** Retrieves the current state of the Viewport drag-to-scroll functionality flag.
@see setViewportIgnoreDragFlag @see setViewportIgnoreDragFlag
*/ */
bool getViewportIgnoreDragFlag() const noexcept { return flags.viewportIgnoreDragFlag; } bool getViewportIgnoreDragFlag() const noexcept { return flags.viewportIgnoreDragFlag; }
//============================================================================== //==============================================================================
// These methods are deprecated - use localPointToGlobal, getLocalPoint, getLocalPoint, etc instead. // These methods are deprecated - use localPointToGlobal, getLocalPoint, getLocalPoint, etc instead.

View file

@ -125,7 +125,7 @@ public:
void setDashLengths (const Array<float>& newDashLengths); void setDashLengths (const Array<float>& newDashLengths);
/** Returns the set of dash lengths that the path is using. */ /** Returns the set of dash lengths that the path is using. */
const Array<float>& getDashLengths() const noexcept { return dashLengths; }; const Array<float>& getDashLengths() const noexcept { return dashLengths; }
//============================================================================== //==============================================================================
/** @internal */ /** @internal */