diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index de996285a7..cc5515b8b8 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -24299,13 +24299,13 @@ ChannelRemappingAudioSource::~ChannelRemappingAudioSource() delete source; } -void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_) throw() +void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_) { const ScopedLock sl (lock); requiredNumberOfChannels = requiredNumberOfChannels_; } -void ChannelRemappingAudioSource::clearAllMappings() throw() +void ChannelRemappingAudioSource::clearAllMappings() { const ScopedLock sl (lock); @@ -24313,7 +24313,7 @@ void ChannelRemappingAudioSource::clearAllMappings() throw() remappedOutputs.clear(); } -void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, const int sourceIndex) throw() +void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, const int sourceIndex) { const ScopedLock sl (lock); @@ -24323,7 +24323,7 @@ void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, c remappedInputs.set (destIndex, sourceIndex); } -void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex, const int destIndex) throw() +void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex, const int destIndex) { const ScopedLock sl (lock); @@ -24333,7 +24333,7 @@ void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex remappedOutputs.set (sourceIndex, destIndex); } -int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const throw() +int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const { const ScopedLock sl (lock); @@ -24343,7 +24343,7 @@ int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannel return -1; } -int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const throw() +int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const { const ScopedLock sl (lock); @@ -24408,7 +24408,7 @@ void ChannelRemappingAudioSource::getNextAudioBlock (const AudioSourceChannelInf } } -XmlElement* ChannelRemappingAudioSource::createXml() const throw() +XmlElement* ChannelRemappingAudioSource::createXml() const { XmlElement* e = new XmlElement ("MAPPINGS"); @@ -24429,7 +24429,7 @@ XmlElement* ChannelRemappingAudioSource::createXml() const throw() return e; } -void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e) throw() +void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e) { if (e.hasTagName ("MAPPINGS")) { diff --git a/juce_amalgamated.h b/juce_amalgamated.h index 481c127bd4..24682ff1d9 100644 --- a/juce_amalgamated.h +++ b/juce_amalgamated.h @@ -2682,8 +2682,8 @@ public: If deleteOldLogger is set to true, the existing logger will be deleted (if there is one). */ - static void JUCE_CALLTYPE setCurrentLogger (Logger* const newLogger, - const bool deleteOldLogger = false); + static void JUCE_CALLTYPE setCurrentLogger (Logger* newLogger, + bool deleteOldLogger = false); /** Writes a string to the current logger. @@ -4626,7 +4626,7 @@ public: /** Changes the sign of the number to be positive or negative. @see isNegative, negate */ - void setNegative (const bool shouldBeNegative) throw(); + void setNegative (bool shouldBeNegative) throw(); /** Inverts the sign of the number. @see isNegative, setNegative @@ -4872,7 +4872,7 @@ public: @param dataToInitialiseFrom some data to copy into this block @param sizeInBytes how much space to use */ - MemoryBlock (const void* const dataToInitialiseFrom, + MemoryBlock (const void* dataToInitialiseFrom, const size_t sizeInBytes) throw(); /** Destructor. */ @@ -4954,7 +4954,7 @@ public: This block's size will be increased accordingly. */ - void append (const void* const data, + void append (const void* data, const size_t numBytes) throw(); /** Exchanges the contents of this and another memory block. @@ -9816,7 +9816,7 @@ public: @see getFirstChildElement, getNextElement, getNumChildElements, getChildElement, removeChildElement */ - void addChildElement (XmlElement* const newChildElement) throw(); + void addChildElement (XmlElement* newChildElement) throw(); /** Inserts an element into this element's list of children. @@ -9880,7 +9880,7 @@ public: void deleteAllChildElementsWithTagName (const String& tagName) throw(); /** Returns true if the given element is a child of this one. */ - bool containsChildElement (const XmlElement* const possibleChild) const throw(); + bool containsChildElement (const XmlElement* possibleChild) const throw(); /** Recursively searches all sub-elements to find one that contains the specified child element. @@ -10047,7 +10047,7 @@ public: @param ignoreCaseOfKeyNames if true, the names of properties are compared in a case-insensitive way */ - PropertySet (const bool ignoreCaseOfKeyNames = false) throw(); + PropertySet (bool ignoreCaseOfKeyNames = false) throw(); /** Creates a copy of another PropertySet. */ @@ -10138,7 +10138,7 @@ public: an empty string @see getXmlValue */ - void setValue (const String& keyName, const XmlElement* const xml); + void setValue (const String& keyName, const XmlElement* xml); /** Deletes a property. @@ -14987,10 +14987,10 @@ public: @see getRawData */ - Uuid (const uint8* const rawData); + Uuid (const uint8* rawData); /** Sets this UUID from 16-bytes of raw data. */ - Uuid& operator= (const uint8* const rawData); + Uuid& operator= (const uint8* rawData); juce_UseDebuggingNewOperator @@ -15142,7 +15142,7 @@ private: void processBlock (const void* data, size_t dataSize); void transform (const void* buffer); - void finish (void* const result); + void finish (void* result); }; void processStream (InputStream& input, int64 numBytesToRead); @@ -17261,7 +17261,7 @@ public: /** Indicates whether to use a case-insensitive search when looking up a string. This defaults to true. */ - void setIgnoresCase (const bool shouldIgnoreCase); + void setIgnoresCase (bool shouldIgnoreCase); juce_UseDebuggingNewOperator @@ -17358,7 +17358,7 @@ public: there was an error. @see getLastParseError */ - XmlElement* getDocumentElement (const bool onlyReadOuterDocumentElement = false); + XmlElement* getDocumentElement (bool onlyReadOuterDocumentElement = false); /** Returns the parsing error that occurred the last time getDocumentElement was called. @@ -17377,7 +17377,7 @@ public: @see InputSource */ - void setInputSource (InputSource* const newSource) throw(); + void setInputSource (InputSource* newSource) throw(); /** Sets a flag to change the treatment of empty text elements. @@ -17386,7 +17386,7 @@ public: whitespace-only text, then you should set this to false before calling the getDocumentElement() method. */ - void setEmptyTextElementsIgnored (const bool shouldBeIgnored) throw(); + void setEmptyTextElementsIgnored (bool shouldBeIgnored) throw(); juce_UseDebuggingNewOperator @@ -17405,7 +17405,7 @@ private: void skipHeader(); void skipNextWhiteSpace(); juce_wchar readNextChar() throw(); - XmlElement* readNextElement (const bool alsoParseSubElements); + XmlElement* readNextElement (bool alsoParseSubElements); void readChildElements (XmlElement* parent); int findNextTokenLength() throw(); void readQuotedString (String& result); @@ -24134,7 +24134,7 @@ public: A value of 0.0 is completely transparent, 1.0 is completely opaque. */ - void setOpacity (const float newOpacity); + void setOpacity (float newOpacity); /** Sets the context to use a gradient for its fill pattern. */ @@ -24661,7 +24661,7 @@ public: For internal use only. NB. The context will NOT be deleted by this object when it is deleted. */ - Graphics (LowLevelGraphicsContext* const internalContext) throw(); + Graphics (LowLevelGraphicsContext* internalContext) throw(); /** @internal */ LowLevelGraphicsContext* getInternalContext() const throw() { return context; } @@ -26573,7 +26573,7 @@ public: be focused, but where you don't want the user to be able to affect it directly by clicking. */ - void setMouseClickGrabsKeyboardFocus (const bool shouldGrabFocus); + void setMouseClickGrabsKeyboardFocus (bool shouldGrabFocus); /** Returns the last value set with setMouseClickGrabsKeyboardFocus(). @@ -28064,7 +28064,7 @@ private: class CommandTargetMessageInvoker : public MessageListener { public: - CommandTargetMessageInvoker (ApplicationCommandTarget* const owner); + CommandTargetMessageInvoker (ApplicationCommandTarget* owner); ~CommandTargetMessageInvoker(); void handleMessage (const Message& message); @@ -30534,7 +30534,7 @@ public: @returns true if it's now enabled. If the device doesn't support it, this will always return false. */ - bool setBufferUnderrunProtection (const bool shouldBeEnabled); + bool setBufferUnderrunProtection (bool shouldBeEnabled); /** Returns the number of free blocks on the disk. @@ -31537,8 +31537,8 @@ public: when this object is deleted; if false it will be left up to the caller to manage its lifetime */ - AudioFormatReaderSource (AudioFormatReader* const sourceReader, - const bool deleteReaderWhenThisIsDeleted); + AudioFormatReaderSource (AudioFormatReader* sourceReader, + bool deleteReaderWhenThisIsDeleted); /** Destructor. */ ~AudioFormatReaderSource(); @@ -31943,7 +31943,7 @@ public: /** Sets a gain to apply to the audio data. @see getGain */ - void setGain (const float newGain) throw(); + void setGain (float newGain) throw(); /** Returns the current gain. @see setGain @@ -32018,7 +32018,7 @@ public: @param numberOfSamplesToBuffer the size of buffer to use for reading ahead */ BufferingAudioSource (PositionableAudioSource* source, - const bool deleteSourceWhenDeleted, + bool deleteSourceWhenDeleted, int numberOfSamplesToBuffer); /** Destructor. @@ -32094,8 +32094,8 @@ public: this object is deleted @param numChannels the number of channels to process */ - ResamplingAudioSource (AudioSource* const inputSource, - const bool deleteInputWhenDeleted, + ResamplingAudioSource (AudioSource* inputSource, + bool deleteInputWhenDeleted, int numChannels = 2); /** Destructor. */ @@ -32109,7 +32109,7 @@ public: values will speed it up; lower values will slow it down. The ratio must be greater than 0 */ - void setResamplingRatio (const double samplesInPerOutputSample); + void setResamplingRatio (double samplesInPerOutputSample); /** Returns the current resampling ratio. @@ -32136,7 +32136,7 @@ private: HeapBlock destBuffers, srcBuffers; void setFilterCoefficients (double c1, double c2, double c3, double c4, double c5, double c6); - void createLowPass (const double proportionalRate); + void createLowPass (double proportionalRate); struct FilterState { @@ -32198,7 +32198,7 @@ public: adjusted to maintain playback at the correct pitch. If this is 0, no sample-rate adjustment will be performed */ - void setSource (PositionableAudioSource* const newSource, + void setSource (PositionableAudioSource* newSource, int readAheadBufferSize = 0, double sourceSampleRateToCorrectFor = 0.0); @@ -32243,7 +32243,7 @@ public: @param newGain a factor by which to multiply the outgoing samples, so 1.0 = 0dB, 0.5 = -6dB, 2.0 = 6dB, etc. */ - void setGain (const float newGain) throw(); + void setGain (float newGain) throw(); /** Returns the current gain setting. @@ -32332,8 +32332,8 @@ public: when this object is deleted, if false, the caller is responsible for its deletion */ - ChannelRemappingAudioSource (AudioSource* const source, - const bool deleteSourceWhenDeleted); + ChannelRemappingAudioSource (AudioSource* source, + bool deleteSourceWhenDeleted); /** Destructor. */ ~ChannelRemappingAudioSource(); @@ -32341,14 +32341,14 @@ public: /** Specifies a number of channels that this audio source must produce from its getNextAudioBlock() callback. */ - void setNumberOfChannelsToProduce (const int requiredNumberOfChannels) throw(); + void setNumberOfChannelsToProduce (int requiredNumberOfChannels); /** Clears any mapped channels. After this, no channels are mapped, so this object will produce silence. Create some mappings with setInputChannelMapping() and setOutputChannelMapping(). */ - void clearAllMappings() throw(); + void clearAllMappings(); /** Creates an input channel mapping. @@ -32360,8 +32360,8 @@ public: @param sourceChannelIndex the index of the input channel in the incoming audio data buffer during our getNextAudioBlock() callback */ - void setInputChannelMapping (const int destChannelIndex, - const int sourceChannelIndex) throw(); + void setInputChannelMapping (int destChannelIndex, + int sourceChannelIndex); /** Creates an output channel mapping. @@ -32373,30 +32373,30 @@ public: @param destChannelIndex the index of the output channel in the incoming audio data buffer during our getNextAudioBlock() callback */ - void setOutputChannelMapping (const int sourceChannelIndex, - const int destChannelIndex) throw(); + void setOutputChannelMapping (int sourceChannelIndex, + int destChannelIndex); /** Returns the channel from our input that will be sent to channel inputChannelIndex of our input audio source. */ - int getRemappedInputChannel (const int inputChannelIndex) const throw(); + int getRemappedInputChannel (int inputChannelIndex) const; /** Returns the output channel to which channel outputChannelIndex of our input audio source will be sent to. */ - int getRemappedOutputChannel (const int outputChannelIndex) const throw(); + int getRemappedOutputChannel (int outputChannelIndex) const; /** Returns an XML object to encapsulate the state of the mappings. @see restoreFromXml */ - XmlElement* createXml() const throw(); + XmlElement* createXml() const; /** Restores the mappings from an XML object created by createXML(). @see createXml */ - void restoreFromXml (const XmlElement& e) throw(); + void restoreFromXml (const XmlElement& e); void prepareToPlay (int samplesPerBlockExpected, double sampleRate); void releaseResources(); @@ -32564,8 +32564,8 @@ public: @param deleteInputWhenDeleted if true, the input source will be deleted when this object is deleted */ - IIRFilterAudioSource (AudioSource* const inputSource, - const bool deleteInputWhenDeleted); + IIRFilterAudioSource (AudioSource* inputSource, + bool deleteInputWhenDeleted); /** Destructor. */ ~IIRFilterAudioSource(); @@ -32632,8 +32632,7 @@ public: called (unless the source is previously removed with the removeInputSource method) */ - void addInputSource (AudioSource* newInput, - const bool deleteWhenRemoved); + void addInputSource (AudioSource* newInput, bool deleteWhenRemoved); /** Removes an input source. @@ -32643,8 +32642,7 @@ public: @param input the source to remove @param deleteSource whether to delete this source after it's been removed */ - void removeInputSource (AudioSource* input, - const bool deleteSource); + void removeInputSource (AudioSource* input, bool deleteSource); /** Removes all the input sources. @@ -32718,10 +32716,10 @@ public: ~ToneGeneratorAudioSource(); /** Sets the signal's amplitude. */ - void setAmplitude (const float newAmplitude); + void setAmplitude (float newAmplitude); /** Sets the signal's frequency. */ - void setFrequency (const double newFrequencyHz); + void setFrequency (double newFrequencyHz); /** Implementation of the AudioSource method. */ void prepareToPlay (int samplesPerBlockExpected, double sampleRate); @@ -34856,9 +34854,9 @@ private: void repeatTimerCallback(); RepeatTimer& getRepeatTimer(); - ButtonState updateState (const MouseEvent* const e); + ButtonState updateState (const MouseEvent*); bool isShortcutPressed() const; - void turnOffOtherButtonsInGroup (const bool sendChangeNotification); + void turnOffOtherButtonsInGroup (bool sendChangeNotification); void flashButtonState(); void sendClickMessage (const ModifierKeys& modifiers); @@ -39743,13 +39741,13 @@ public: @see getNumFormats */ - AudioPluginFormat* getFormat (const int index); + AudioPluginFormat* getFormat (int index); /** Adds a format to the list. The object passed in will be owned and deleted by the manager. */ - void addFormat (AudioPluginFormat* const format); + void addFormat (AudioPluginFormat* format); /** Tries to load the type for this description, by trying all the formats that this manager knows about. @@ -45904,7 +45902,7 @@ public: By default this is on, and the progress bar will display a text string showing its current percentage. */ - void setPercentageDisplay (const bool shouldDisplayPercentage); + void setPercentageDisplay (bool shouldDisplayPercentage); /** Gives the progress bar a string to display inside it. @@ -49544,7 +49542,7 @@ public: virtual void resizeEnd(); /** Checks the given bounds, and then sets the component to the corrected size. */ - void setBoundsForComponent (Component* const component, + void setBoundsForComponent (Component* component, const Rectangle& bounds, bool isStretchingTop, bool isStretchingLeft, @@ -49622,7 +49620,7 @@ public: from going offscreen @see dragComponent */ - void startDraggingComponent (Component* const componentToDrag, + void startDraggingComponent (Component* componentToDrag, ComponentBoundsConstrainer* constrainer); /** Call this from your mouseDrag() callback to move the component. @@ -49636,7 +49634,7 @@ public: @param e the current mouse-drag event @see dragComponent */ - void dragComponent (Component* const componentToDrag, + void dragComponent (Component* componentToDrag, const MouseEvent& e); juce_UseDebuggingNewOperator @@ -55123,7 +55121,7 @@ public: is invoked. You can change this setting later with the setHoverTimeMillisecs() method */ - MouseHoverDetector (const int hoverTimeMillisecs = 400); + MouseHoverDetector (int hoverTimeMillisecs = 400); /** Destructor. */ virtual ~MouseHoverDetector(); @@ -55131,14 +55129,14 @@ public: /** Changes the time for which the mouse has to stay still before it's considered to be hovering. */ - void setHoverTimeMillisecs (const int newTimeInMillisecs); + void setHoverTimeMillisecs (int newTimeInMillisecs); /** Changes the component that's being monitored for hovering. Be careful not to delete a component that's being monitored without first stopping or deleting the hover detector. */ - void setHoverComponent (Component* const newSourceComponent); + void setHoverComponent (Component* newSourceComponent); protected: @@ -60791,9 +60789,7 @@ public: const String getFormatName(); bool canUnderstand (InputStream& input); - const Image decodeImage (InputStream& input); - bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); }; @@ -60814,14 +60810,11 @@ public: @param newQuality a value 0 to 1.0, where 0 is low quality, 1.0 is best, or any negative value is "default" quality */ - void setQuality (const float newQuality); + void setQuality (float newQuality); const String getFormatName(); - bool canUnderstand (InputStream& input); - const Image decodeImage (InputStream& input); - bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); private: diff --git a/src/application/juce_ApplicationCommandTarget.h b/src/application/juce_ApplicationCommandTarget.h index dc821c22d5..a9f13940d8 100644 --- a/src/application/juce_ApplicationCommandTarget.h +++ b/src/application/juce_ApplicationCommandTarget.h @@ -240,7 +240,7 @@ private: class CommandTargetMessageInvoker : public MessageListener { public: - CommandTargetMessageInvoker (ApplicationCommandTarget* const owner); + CommandTargetMessageInvoker (ApplicationCommandTarget* owner); ~CommandTargetMessageInvoker(); void handleMessage (const Message& message); diff --git a/src/audio/audio_file_formats/juce_AudioCDBurner.h b/src/audio/audio_file_formats/juce_AudioCDBurner.h index 4b4d8af844..7b235363cf 100644 --- a/src/audio/audio_file_formats/juce_AudioCDBurner.h +++ b/src/audio/audio_file_formats/juce_AudioCDBurner.h @@ -99,7 +99,7 @@ public: @returns true if it's now enabled. If the device doesn't support it, this will always return false. */ - bool setBufferUnderrunProtection (const bool shouldBeEnabled); + bool setBufferUnderrunProtection (bool shouldBeEnabled); //============================================================================== /** Returns the number of free blocks on the disk. diff --git a/src/audio/audio_sources/juce_AudioFormatReaderSource.h b/src/audio/audio_sources/juce_AudioFormatReaderSource.h index 9b73579843..dafc300489 100644 --- a/src/audio/audio_sources/juce_AudioFormatReaderSource.h +++ b/src/audio/audio_sources/juce_AudioFormatReaderSource.h @@ -49,8 +49,8 @@ public: when this object is deleted; if false it will be left up to the caller to manage its lifetime */ - AudioFormatReaderSource (AudioFormatReader* const sourceReader, - const bool deleteReaderWhenThisIsDeleted); + AudioFormatReaderSource (AudioFormatReader* sourceReader, + bool deleteReaderWhenThisIsDeleted); /** Destructor. */ ~AudioFormatReaderSource(); diff --git a/src/audio/audio_sources/juce_AudioSourcePlayer.h b/src/audio/audio_sources/juce_AudioSourcePlayer.h index 91361daf0e..534e0bdf81 100644 --- a/src/audio/audio_sources/juce_AudioSourcePlayer.h +++ b/src/audio/audio_sources/juce_AudioSourcePlayer.h @@ -77,7 +77,7 @@ public: /** Sets a gain to apply to the audio data. @see getGain */ - void setGain (const float newGain) throw(); + void setGain (float newGain) throw(); /** Returns the current gain. @see setGain diff --git a/src/audio/audio_sources/juce_AudioTransportSource.h b/src/audio/audio_sources/juce_AudioTransportSource.h index 4da789d84b..09957e4979 100644 --- a/src/audio/audio_sources/juce_AudioTransportSource.h +++ b/src/audio/audio_sources/juce_AudioTransportSource.h @@ -76,7 +76,7 @@ public: adjusted to maintain playback at the correct pitch. If this is 0, no sample-rate adjustment will be performed */ - void setSource (PositionableAudioSource* const newSource, + void setSource (PositionableAudioSource* newSource, int readAheadBufferSize = 0, double sourceSampleRateToCorrectFor = 0.0); @@ -124,7 +124,7 @@ public: @param newGain a factor by which to multiply the outgoing samples, so 1.0 = 0dB, 0.5 = -6dB, 2.0 = 6dB, etc. */ - void setGain (const float newGain) throw(); + void setGain (float newGain) throw(); /** Returns the current gain setting. diff --git a/src/audio/audio_sources/juce_BufferingAudioSource.h b/src/audio/audio_sources/juce_BufferingAudioSource.h index f757b3da7f..de31c7c7a2 100644 --- a/src/audio/audio_sources/juce_BufferingAudioSource.h +++ b/src/audio/audio_sources/juce_BufferingAudioSource.h @@ -53,7 +53,7 @@ public: @param numberOfSamplesToBuffer the size of buffer to use for reading ahead */ BufferingAudioSource (PositionableAudioSource* source, - const bool deleteSourceWhenDeleted, + bool deleteSourceWhenDeleted, int numberOfSamplesToBuffer); /** Destructor. diff --git a/src/audio/audio_sources/juce_ChannelRemappingAudioSource.cpp b/src/audio/audio_sources/juce_ChannelRemappingAudioSource.cpp index 5f7031a9e8..0bf79260ae 100644 --- a/src/audio/audio_sources/juce_ChannelRemappingAudioSource.cpp +++ b/src/audio/audio_sources/juce_ChannelRemappingAudioSource.cpp @@ -50,13 +50,13 @@ ChannelRemappingAudioSource::~ChannelRemappingAudioSource() } //============================================================================== -void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_) throw() +void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_) { const ScopedLock sl (lock); requiredNumberOfChannels = requiredNumberOfChannels_; } -void ChannelRemappingAudioSource::clearAllMappings() throw() +void ChannelRemappingAudioSource::clearAllMappings() { const ScopedLock sl (lock); @@ -64,7 +64,7 @@ void ChannelRemappingAudioSource::clearAllMappings() throw() remappedOutputs.clear(); } -void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, const int sourceIndex) throw() +void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, const int sourceIndex) { const ScopedLock sl (lock); @@ -74,7 +74,7 @@ void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, c remappedInputs.set (destIndex, sourceIndex); } -void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex, const int destIndex) throw() +void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex, const int destIndex) { const ScopedLock sl (lock); @@ -84,7 +84,7 @@ void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex remappedOutputs.set (sourceIndex, destIndex); } -int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const throw() +int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const { const ScopedLock sl (lock); @@ -94,7 +94,7 @@ int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannel return -1; } -int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const throw() +int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const { const ScopedLock sl (lock); @@ -161,7 +161,7 @@ void ChannelRemappingAudioSource::getNextAudioBlock (const AudioSourceChannelInf } //============================================================================== -XmlElement* ChannelRemappingAudioSource::createXml() const throw() +XmlElement* ChannelRemappingAudioSource::createXml() const { XmlElement* e = new XmlElement ("MAPPINGS"); @@ -182,7 +182,7 @@ XmlElement* ChannelRemappingAudioSource::createXml() const throw() return e; } -void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e) throw() +void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e) { if (e.hasTagName ("MAPPINGS")) { diff --git a/src/audio/audio_sources/juce_ChannelRemappingAudioSource.h b/src/audio/audio_sources/juce_ChannelRemappingAudioSource.h index ff8e5af18a..f4d341efa1 100644 --- a/src/audio/audio_sources/juce_ChannelRemappingAudioSource.h +++ b/src/audio/audio_sources/juce_ChannelRemappingAudioSource.h @@ -58,8 +58,8 @@ public: when this object is deleted, if false, the caller is responsible for its deletion */ - ChannelRemappingAudioSource (AudioSource* const source, - const bool deleteSourceWhenDeleted); + ChannelRemappingAudioSource (AudioSource* source, + bool deleteSourceWhenDeleted); /** Destructor. */ ~ChannelRemappingAudioSource(); @@ -68,14 +68,14 @@ public: /** Specifies a number of channels that this audio source must produce from its getNextAudioBlock() callback. */ - void setNumberOfChannelsToProduce (const int requiredNumberOfChannels) throw(); + void setNumberOfChannelsToProduce (int requiredNumberOfChannels); /** Clears any mapped channels. After this, no channels are mapped, so this object will produce silence. Create some mappings with setInputChannelMapping() and setOutputChannelMapping(). */ - void clearAllMappings() throw(); + void clearAllMappings(); /** Creates an input channel mapping. @@ -87,8 +87,8 @@ public: @param sourceChannelIndex the index of the input channel in the incoming audio data buffer during our getNextAudioBlock() callback */ - void setInputChannelMapping (const int destChannelIndex, - const int sourceChannelIndex) throw(); + void setInputChannelMapping (int destChannelIndex, + int sourceChannelIndex); /** Creates an output channel mapping. @@ -100,18 +100,18 @@ public: @param destChannelIndex the index of the output channel in the incoming audio data buffer during our getNextAudioBlock() callback */ - void setOutputChannelMapping (const int sourceChannelIndex, - const int destChannelIndex) throw(); + void setOutputChannelMapping (int sourceChannelIndex, + int destChannelIndex); /** Returns the channel from our input that will be sent to channel inputChannelIndex of our input audio source. */ - int getRemappedInputChannel (const int inputChannelIndex) const throw(); + int getRemappedInputChannel (int inputChannelIndex) const; /** Returns the output channel to which channel outputChannelIndex of our input audio source will be sent to. */ - int getRemappedOutputChannel (const int outputChannelIndex) const throw(); + int getRemappedOutputChannel (int outputChannelIndex) const; //============================================================================== @@ -119,13 +119,13 @@ public: @see restoreFromXml */ - XmlElement* createXml() const throw(); + XmlElement* createXml() const; /** Restores the mappings from an XML object created by createXML(). @see createXml */ - void restoreFromXml (const XmlElement& e) throw(); + void restoreFromXml (const XmlElement& e); //============================================================================== void prepareToPlay (int samplesPerBlockExpected, double sampleRate); diff --git a/src/audio/audio_sources/juce_IIRFilterAudioSource.h b/src/audio/audio_sources/juce_IIRFilterAudioSource.h index c941f20a7f..2453a75072 100644 --- a/src/audio/audio_sources/juce_IIRFilterAudioSource.h +++ b/src/audio/audio_sources/juce_IIRFilterAudioSource.h @@ -45,8 +45,8 @@ public: @param deleteInputWhenDeleted if true, the input source will be deleted when this object is deleted */ - IIRFilterAudioSource (AudioSource* const inputSource, - const bool deleteInputWhenDeleted); + IIRFilterAudioSource (AudioSource* inputSource, + bool deleteInputWhenDeleted); /** Destructor. */ ~IIRFilterAudioSource(); diff --git a/src/audio/audio_sources/juce_MixerAudioSource.h b/src/audio/audio_sources/juce_MixerAudioSource.h index 789aeca426..a6b6d96823 100644 --- a/src/audio/audio_sources/juce_MixerAudioSource.h +++ b/src/audio/audio_sources/juce_MixerAudioSource.h @@ -65,8 +65,7 @@ public: called (unless the source is previously removed with the removeInputSource method) */ - void addInputSource (AudioSource* newInput, - const bool deleteWhenRemoved); + void addInputSource (AudioSource* newInput, bool deleteWhenRemoved); /** Removes an input source. @@ -76,8 +75,7 @@ public: @param input the source to remove @param deleteSource whether to delete this source after it's been removed */ - void removeInputSource (AudioSource* input, - const bool deleteSource); + void removeInputSource (AudioSource* input, bool deleteSource); /** Removes all the input sources. diff --git a/src/audio/audio_sources/juce_ResamplingAudioSource.h b/src/audio/audio_sources/juce_ResamplingAudioSource.h index f869d64313..360fac8687 100644 --- a/src/audio/audio_sources/juce_ResamplingAudioSource.h +++ b/src/audio/audio_sources/juce_ResamplingAudioSource.h @@ -47,8 +47,8 @@ public: this object is deleted @param numChannels the number of channels to process */ - ResamplingAudioSource (AudioSource* const inputSource, - const bool deleteInputWhenDeleted, + ResamplingAudioSource (AudioSource* inputSource, + bool deleteInputWhenDeleted, int numChannels = 2); /** Destructor. */ @@ -62,7 +62,7 @@ public: values will speed it up; lower values will slow it down. The ratio must be greater than 0 */ - void setResamplingRatio (const double samplesInPerOutputSample); + void setResamplingRatio (double samplesInPerOutputSample); /** Returns the current resampling ratio. @@ -91,7 +91,7 @@ private: HeapBlock destBuffers, srcBuffers; void setFilterCoefficients (double c1, double c2, double c3, double c4, double c5, double c6); - void createLowPass (const double proportionalRate); + void createLowPass (double proportionalRate); struct FilterState { diff --git a/src/audio/audio_sources/juce_ToneGeneratorAudioSource.h b/src/audio/audio_sources/juce_ToneGeneratorAudioSource.h index b7d3b797cb..c81bd6b8fc 100644 --- a/src/audio/audio_sources/juce_ToneGeneratorAudioSource.h +++ b/src/audio/audio_sources/juce_ToneGeneratorAudioSource.h @@ -46,10 +46,10 @@ public: //============================================================================== /** Sets the signal's amplitude. */ - void setAmplitude (const float newAmplitude); + void setAmplitude (float newAmplitude); /** Sets the signal's frequency. */ - void setFrequency (const double newFrequencyHz); + void setFrequency (double newFrequencyHz); //============================================================================== diff --git a/src/audio/plugins/juce_AudioPluginFormatManager.h b/src/audio/plugins/juce_AudioPluginFormatManager.h index 02bdd38293..04f7f4c843 100644 --- a/src/audio/plugins/juce_AudioPluginFormatManager.h +++ b/src/audio/plugins/juce_AudioPluginFormatManager.h @@ -64,14 +64,14 @@ public: @see getNumFormats */ - AudioPluginFormat* getFormat (const int index); + AudioPluginFormat* getFormat (int index); //============================================================================== /** Adds a format to the list. The object passed in will be owned and deleted by the manager. */ - void addFormat (AudioPluginFormat* const format); + void addFormat (AudioPluginFormat* format); //============================================================================== diff --git a/src/containers/juce_BigInteger.h b/src/containers/juce_BigInteger.h index 42d8952655..9427c06c22 100644 --- a/src/containers/juce_BigInteger.h +++ b/src/containers/juce_BigInteger.h @@ -262,7 +262,7 @@ public: /** Changes the sign of the number to be positive or negative. @see isNegative, negate */ - void setNegative (const bool shouldBeNegative) throw(); + void setNegative (bool shouldBeNegative) throw(); /** Inverts the sign of the number. @see isNegative, setNegative diff --git a/src/containers/juce_MemoryBlock.h b/src/containers/juce_MemoryBlock.h index 02352ace2c..10390880a9 100644 --- a/src/containers/juce_MemoryBlock.h +++ b/src/containers/juce_MemoryBlock.h @@ -58,7 +58,7 @@ public: @param dataToInitialiseFrom some data to copy into this block @param sizeInBytes how much space to use */ - MemoryBlock (const void* const dataToInitialiseFrom, + MemoryBlock (const void* dataToInitialiseFrom, const size_t sizeInBytes) throw(); /** Destructor. */ @@ -145,7 +145,7 @@ public: This block's size will be increased accordingly. */ - void append (const void* const data, + void append (const void* data, const size_t numBytes) throw(); /** Exchanges the contents of this and another memory block. diff --git a/src/containers/juce_PropertySet.h b/src/containers/juce_PropertySet.h index 7b3981cfa5..f82cf740c5 100644 --- a/src/containers/juce_PropertySet.h +++ b/src/containers/juce_PropertySet.h @@ -50,7 +50,7 @@ public: @param ignoreCaseOfKeyNames if true, the names of properties are compared in a case-insensitive way */ - PropertySet (const bool ignoreCaseOfKeyNames = false) throw(); + PropertySet (bool ignoreCaseOfKeyNames = false) throw(); /** Creates a copy of another PropertySet. */ @@ -143,7 +143,7 @@ public: an empty string @see getXmlValue */ - void setValue (const String& keyName, const XmlElement* const xml); + void setValue (const String& keyName, const XmlElement* xml); //============================================================================== /** Deletes a property. diff --git a/src/core/juce_Logger.h b/src/core/juce_Logger.h index 42de422324..77b2310344 100644 --- a/src/core/juce_Logger.h +++ b/src/core/juce_Logger.h @@ -57,8 +57,8 @@ public: If deleteOldLogger is set to true, the existing logger will be deleted (if there is one). */ - static void JUCE_CALLTYPE setCurrentLogger (Logger* const newLogger, - const bool deleteOldLogger = false); + static void JUCE_CALLTYPE setCurrentLogger (Logger* newLogger, + bool deleteOldLogger = false); /** Writes a string to the current logger. diff --git a/src/core/juce_Uuid.h b/src/core/juce_Uuid.h index b0e8d061bb..2c0a754dd1 100644 --- a/src/core/juce_Uuid.h +++ b/src/core/juce_Uuid.h @@ -100,10 +100,10 @@ public: @see getRawData */ - Uuid (const uint8* const rawData); + Uuid (const uint8* rawData); /** Sets this UUID from 16-bytes of raw data. */ - Uuid& operator= (const uint8* const rawData); + Uuid& operator= (const uint8* rawData); //============================================================================== diff --git a/src/cryptography/juce_MD5.h b/src/cryptography/juce_MD5.h index 9ddf0965dd..293b47a6c1 100644 --- a/src/cryptography/juce_MD5.h +++ b/src/cryptography/juce_MD5.h @@ -116,7 +116,7 @@ private: void processBlock (const void* data, size_t dataSize); void transform (const void* buffer); - void finish (void* const result); + void finish (void* result); }; void processStream (InputStream& input, int64 numBytesToRead); diff --git a/src/gui/components/buttons/juce_Button.h b/src/gui/components/buttons/juce_Button.h index d100cbfe80..303e3a511f 100644 --- a/src/gui/components/buttons/juce_Button.h +++ b/src/gui/components/buttons/juce_Button.h @@ -492,9 +492,9 @@ private: void repeatTimerCallback(); RepeatTimer& getRepeatTimer(); - ButtonState updateState (const MouseEvent* const e); + ButtonState updateState (const MouseEvent*); bool isShortcutPressed() const; - void turnOffOtherButtonsInGroup (const bool sendChangeNotification); + void turnOffOtherButtonsInGroup (bool sendChangeNotification); void flashButtonState(); void sendClickMessage (const ModifierKeys& modifiers); diff --git a/src/gui/components/controls/juce_ProgressBar.h b/src/gui/components/controls/juce_ProgressBar.h index fd502d86d4..b0c970b4f8 100644 --- a/src/gui/components/controls/juce_ProgressBar.h +++ b/src/gui/components/controls/juce_ProgressBar.h @@ -70,7 +70,7 @@ public: By default this is on, and the progress bar will display a text string showing its current percentage. */ - void setPercentageDisplay (const bool shouldDisplayPercentage); + void setPercentageDisplay (bool shouldDisplayPercentage); /** Gives the progress bar a string to display inside it. diff --git a/src/gui/components/juce_Component.h b/src/gui/components/juce_Component.h index 8c94df4a41..185ca66cd0 100644 --- a/src/gui/components/juce_Component.h +++ b/src/gui/components/juce_Component.h @@ -1054,7 +1054,7 @@ public: be focused, but where you don't want the user to be able to affect it directly by clicking. */ - void setMouseClickGrabsKeyboardFocus (const bool shouldGrabFocus); + void setMouseClickGrabsKeyboardFocus (bool shouldGrabFocus); /** Returns the last value set with setMouseClickGrabsKeyboardFocus(). diff --git a/src/gui/components/layout/juce_ComponentBoundsConstrainer.h b/src/gui/components/layout/juce_ComponentBoundsConstrainer.h index 98ca0ba326..3172c985ba 100644 --- a/src/gui/components/layout/juce_ComponentBoundsConstrainer.h +++ b/src/gui/components/layout/juce_ComponentBoundsConstrainer.h @@ -156,7 +156,7 @@ public: virtual void resizeEnd(); /** Checks the given bounds, and then sets the component to the corrected size. */ - void setBoundsForComponent (Component* const component, + void setBoundsForComponent (Component* component, const Rectangle& bounds, bool isStretchingTop, bool isStretchingLeft, diff --git a/src/gui/components/mouse/juce_ComponentDragger.h b/src/gui/components/mouse/juce_ComponentDragger.h index 1c5836c209..db39d9f370 100644 --- a/src/gui/components/mouse/juce_ComponentDragger.h +++ b/src/gui/components/mouse/juce_ComponentDragger.h @@ -75,7 +75,7 @@ public: from going offscreen @see dragComponent */ - void startDraggingComponent (Component* const componentToDrag, + void startDraggingComponent (Component* componentToDrag, ComponentBoundsConstrainer* constrainer); /** Call this from your mouseDrag() callback to move the component. @@ -89,7 +89,7 @@ public: @param e the current mouse-drag event @see dragComponent */ - void dragComponent (Component* const componentToDrag, + void dragComponent (Component* componentToDrag, const MouseEvent& e); diff --git a/src/gui/components/mouse/juce_MouseHoverDetector.h b/src/gui/components/mouse/juce_MouseHoverDetector.h index 1b7e310c7c..12284cd78b 100644 --- a/src/gui/components/mouse/juce_MouseHoverDetector.h +++ b/src/gui/components/mouse/juce_MouseHoverDetector.h @@ -56,7 +56,7 @@ public: is invoked. You can change this setting later with the setHoverTimeMillisecs() method */ - MouseHoverDetector (const int hoverTimeMillisecs = 400); + MouseHoverDetector (int hoverTimeMillisecs = 400); /** Destructor. */ virtual ~MouseHoverDetector(); @@ -65,14 +65,14 @@ public: /** Changes the time for which the mouse has to stay still before it's considered to be hovering. */ - void setHoverTimeMillisecs (const int newTimeInMillisecs); + void setHoverTimeMillisecs (int newTimeInMillisecs); /** Changes the component that's being monitored for hovering. Be careful not to delete a component that's being monitored without first stopping or deleting the hover detector. */ - void setHoverComponent (Component* const newSourceComponent); + void setHoverComponent (Component* newSourceComponent); protected: diff --git a/src/gui/graphics/contexts/juce_Graphics.h b/src/gui/graphics/contexts/juce_Graphics.h index 6d8955aeca..cd5cf34e01 100644 --- a/src/gui/graphics/contexts/juce_Graphics.h +++ b/src/gui/graphics/contexts/juce_Graphics.h @@ -92,7 +92,7 @@ public: A value of 0.0 is completely transparent, 1.0 is completely opaque. */ - void setOpacity (const float newOpacity); + void setOpacity (float newOpacity); /** Sets the context to use a gradient for its fill pattern. */ @@ -630,7 +630,7 @@ public: For internal use only. NB. The context will NOT be deleted by this object when it is deleted. */ - Graphics (LowLevelGraphicsContext* const internalContext) throw(); + Graphics (LowLevelGraphicsContext* internalContext) throw(); /** @internal */ LowLevelGraphicsContext* getInternalContext() const throw() { return context; } diff --git a/src/gui/graphics/imaging/juce_ImageFileFormat.h b/src/gui/graphics/imaging/juce_ImageFileFormat.h index fd1cab64af..043ae0700c 100644 --- a/src/gui/graphics/imaging/juce_ImageFileFormat.h +++ b/src/gui/graphics/imaging/juce_ImageFileFormat.h @@ -152,9 +152,7 @@ public: //============================================================================== const String getFormatName(); bool canUnderstand (InputStream& input); - const Image decodeImage (InputStream& input); - bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); }; @@ -178,15 +176,12 @@ public: @param newQuality a value 0 to 1.0, where 0 is low quality, 1.0 is best, or any negative value is "default" quality */ - void setQuality (const float newQuality); + void setQuality (float newQuality); //============================================================================== const String getFormatName(); - bool canUnderstand (InputStream& input); - const Image decodeImage (InputStream& input); - bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); private: diff --git a/src/text/juce_LocalisedStrings.h b/src/text/juce_LocalisedStrings.h index c1f429dc27..3c8f57a041 100644 --- a/src/text/juce_LocalisedStrings.h +++ b/src/text/juce_LocalisedStrings.h @@ -180,7 +180,7 @@ public: /** Indicates whether to use a case-insensitive search when looking up a string. This defaults to true. */ - void setIgnoresCase (const bool shouldIgnoreCase); + void setIgnoresCase (bool shouldIgnoreCase); //============================================================================== juce_UseDebuggingNewOperator diff --git a/src/text/juce_XmlDocument.h b/src/text/juce_XmlDocument.h index e65fbbe508..1698cb64aa 100644 --- a/src/text/juce_XmlDocument.h +++ b/src/text/juce_XmlDocument.h @@ -96,7 +96,7 @@ public: there was an error. @see getLastParseError */ - XmlElement* getDocumentElement (const bool onlyReadOuterDocumentElement = false); + XmlElement* getDocumentElement (bool onlyReadOuterDocumentElement = false); /** Returns the parsing error that occurred the last time getDocumentElement was called. @@ -115,7 +115,7 @@ public: @see InputSource */ - void setInputSource (InputSource* const newSource) throw(); + void setInputSource (InputSource* newSource) throw(); /** Sets a flag to change the treatment of empty text elements. @@ -124,7 +124,7 @@ public: whitespace-only text, then you should set this to false before calling the getDocumentElement() method. */ - void setEmptyTextElementsIgnored (const bool shouldBeIgnored) throw(); + void setEmptyTextElementsIgnored (bool shouldBeIgnored) throw(); //============================================================================== juce_UseDebuggingNewOperator @@ -144,7 +144,7 @@ private: void skipHeader(); void skipNextWhiteSpace(); juce_wchar readNextChar() throw(); - XmlElement* readNextElement (const bool alsoParseSubElements); + XmlElement* readNextElement (bool alsoParseSubElements); void readChildElements (XmlElement* parent); int findNextTokenLength() throw(); void readQuotedString (String& result); diff --git a/src/text/juce_XmlElement.h b/src/text/juce_XmlElement.h index d80c157010..4b888f796a 100644 --- a/src/text/juce_XmlElement.h +++ b/src/text/juce_XmlElement.h @@ -497,7 +497,7 @@ public: @see getFirstChildElement, getNextElement, getNumChildElements, getChildElement, removeChildElement */ - void addChildElement (XmlElement* const newChildElement) throw(); + void addChildElement (XmlElement* newChildElement) throw(); /** Inserts an element into this element's list of children. @@ -561,7 +561,7 @@ public: void deleteAllChildElementsWithTagName (const String& tagName) throw(); /** Returns true if the given element is a child of this one. */ - bool containsChildElement (const XmlElement* const possibleChild) const throw(); + bool containsChildElement (const XmlElement* possibleChild) const throw(); /** Recursively searches all sub-elements to find one that contains the specified child element.