Browse Source

Minor code clean-ups.

tags/2021-05-28
Julian Storer 15 years ago
parent
commit
55e94f19d6
32 changed files with 140 additions and 154 deletions
  1. +8
    -8
      juce_amalgamated.cpp
  2. +62
    -69
      juce_amalgamated.h
  3. +1
    -1
      src/application/juce_ApplicationCommandTarget.h
  4. +1
    -1
      src/audio/audio_file_formats/juce_AudioCDBurner.h
  5. +2
    -2
      src/audio/audio_sources/juce_AudioFormatReaderSource.h
  6. +1
    -1
      src/audio/audio_sources/juce_AudioSourcePlayer.h
  7. +2
    -2
      src/audio/audio_sources/juce_AudioTransportSource.h
  8. +1
    -1
      src/audio/audio_sources/juce_BufferingAudioSource.h
  9. +8
    -8
      src/audio/audio_sources/juce_ChannelRemappingAudioSource.cpp
  10. +12
    -12
      src/audio/audio_sources/juce_ChannelRemappingAudioSource.h
  11. +2
    -2
      src/audio/audio_sources/juce_IIRFilterAudioSource.h
  12. +2
    -4
      src/audio/audio_sources/juce_MixerAudioSource.h
  13. +4
    -4
      src/audio/audio_sources/juce_ResamplingAudioSource.h
  14. +2
    -2
      src/audio/audio_sources/juce_ToneGeneratorAudioSource.h
  15. +2
    -2
      src/audio/plugins/juce_AudioPluginFormatManager.h
  16. +1
    -1
      src/containers/juce_BigInteger.h
  17. +2
    -2
      src/containers/juce_MemoryBlock.h
  18. +2
    -2
      src/containers/juce_PropertySet.h
  19. +2
    -2
      src/core/juce_Logger.h
  20. +2
    -2
      src/core/juce_Uuid.h
  21. +1
    -1
      src/cryptography/juce_MD5.h
  22. +2
    -2
      src/gui/components/buttons/juce_Button.h
  23. +1
    -1
      src/gui/components/controls/juce_ProgressBar.h
  24. +1
    -1
      src/gui/components/juce_Component.h
  25. +1
    -1
      src/gui/components/layout/juce_ComponentBoundsConstrainer.h
  26. +2
    -2
      src/gui/components/mouse/juce_ComponentDragger.h
  27. +3
    -3
      src/gui/components/mouse/juce_MouseHoverDetector.h
  28. +2
    -2
      src/gui/graphics/contexts/juce_Graphics.h
  29. +1
    -6
      src/gui/graphics/imaging/juce_ImageFileFormat.h
  30. +1
    -1
      src/text/juce_LocalisedStrings.h
  31. +4
    -4
      src/text/juce_XmlDocument.h
  32. +2
    -2
      src/text/juce_XmlElement.h

+ 8
- 8
juce_amalgamated.cpp View File

@@ -24299,13 +24299,13 @@ ChannelRemappingAudioSource::~ChannelRemappingAudioSource()
delete source; delete source;
} }


void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_) throw()
void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_)
{ {
const ScopedLock sl (lock); const ScopedLock sl (lock);
requiredNumberOfChannels = requiredNumberOfChannels_; requiredNumberOfChannels = requiredNumberOfChannels_;
} }


void ChannelRemappingAudioSource::clearAllMappings() throw()
void ChannelRemappingAudioSource::clearAllMappings()
{ {
const ScopedLock sl (lock); const ScopedLock sl (lock);


@@ -24313,7 +24313,7 @@ void ChannelRemappingAudioSource::clearAllMappings() throw()
remappedOutputs.clear(); 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); const ScopedLock sl (lock);


@@ -24323,7 +24323,7 @@ void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, c
remappedInputs.set (destIndex, sourceIndex); 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); const ScopedLock sl (lock);


@@ -24333,7 +24333,7 @@ void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex
remappedOutputs.set (sourceIndex, destIndex); remappedOutputs.set (sourceIndex, destIndex);
} }


int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const throw()
int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const
{ {
const ScopedLock sl (lock); const ScopedLock sl (lock);


@@ -24343,7 +24343,7 @@ int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannel
return -1; return -1;
} }


int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const throw()
int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const
{ {
const ScopedLock sl (lock); 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"); XmlElement* e = new XmlElement ("MAPPINGS");


@@ -24429,7 +24429,7 @@ XmlElement* ChannelRemappingAudioSource::createXml() const throw()
return e; return e;
} }


void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e) throw()
void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e)
{ {
if (e.hasTagName ("MAPPINGS")) if (e.hasTagName ("MAPPINGS"))
{ {


+ 62
- 69
juce_amalgamated.h View File

@@ -2682,8 +2682,8 @@ public:
If deleteOldLogger is set to true, the existing logger will be If deleteOldLogger is set to true, the existing logger will be
deleted (if there is one). 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. /** Writes a string to the current logger.


@@ -4626,7 +4626,7 @@ public:
/** Changes the sign of the number to be positive or negative. /** Changes the sign of the number to be positive or negative.
@see isNegative, negate @see isNegative, negate
*/ */
void setNegative (const bool shouldBeNegative) throw();
void setNegative (bool shouldBeNegative) throw();


/** Inverts the sign of the number. /** Inverts the sign of the number.
@see isNegative, setNegative @see isNegative, setNegative
@@ -4872,7 +4872,7 @@ public:
@param dataToInitialiseFrom some data to copy into this block @param dataToInitialiseFrom some data to copy into this block
@param sizeInBytes how much space to use @param sizeInBytes how much space to use
*/ */
MemoryBlock (const void* const dataToInitialiseFrom,
MemoryBlock (const void* dataToInitialiseFrom,
const size_t sizeInBytes) throw(); const size_t sizeInBytes) throw();


/** Destructor. */ /** Destructor. */
@@ -4954,7 +4954,7 @@ public:


This block's size will be increased accordingly. This block's size will be increased accordingly.
*/ */
void append (const void* const data,
void append (const void* data,
const size_t numBytes) throw(); const size_t numBytes) throw();


/** Exchanges the contents of this and another memory block. /** Exchanges the contents of this and another memory block.
@@ -9816,7 +9816,7 @@ public:
@see getFirstChildElement, getNextElement, getNumChildElements, @see getFirstChildElement, getNextElement, getNumChildElements,
getChildElement, removeChildElement getChildElement, removeChildElement
*/ */
void addChildElement (XmlElement* const newChildElement) throw();
void addChildElement (XmlElement* newChildElement) throw();


/** Inserts an element into this element's list of children. /** Inserts an element into this element's list of children.


@@ -9880,7 +9880,7 @@ public:
void deleteAllChildElementsWithTagName (const String& tagName) throw(); void deleteAllChildElementsWithTagName (const String& tagName) throw();


/** Returns true if the given element is a child of this one. */ /** 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 /** Recursively searches all sub-elements to find one that contains the specified
child element. child element.
@@ -10047,7 +10047,7 @@ public:
@param ignoreCaseOfKeyNames if true, the names of properties are compared in a @param ignoreCaseOfKeyNames if true, the names of properties are compared in a
case-insensitive way case-insensitive way
*/ */
PropertySet (const bool ignoreCaseOfKeyNames = false) throw();
PropertySet (bool ignoreCaseOfKeyNames = false) throw();


/** Creates a copy of another PropertySet. /** Creates a copy of another PropertySet.
*/ */
@@ -10138,7 +10138,7 @@ public:
an empty string an empty string
@see getXmlValue @see getXmlValue
*/ */
void setValue (const String& keyName, const XmlElement* const xml);
void setValue (const String& keyName, const XmlElement* xml);


/** Deletes a property. /** Deletes a property.


@@ -14987,10 +14987,10 @@ public:


@see getRawData @see getRawData
*/ */
Uuid (const uint8* const rawData);
Uuid (const uint8* rawData);


/** Sets this UUID from 16-bytes of raw data. */ /** Sets this UUID from 16-bytes of raw data. */
Uuid& operator= (const uint8* const rawData);
Uuid& operator= (const uint8* rawData);


juce_UseDebuggingNewOperator juce_UseDebuggingNewOperator


@@ -15142,7 +15142,7 @@ private:


void processBlock (const void* data, size_t dataSize); void processBlock (const void* data, size_t dataSize);
void transform (const void* buffer); void transform (const void* buffer);
void finish (void* const result);
void finish (void* result);
}; };


void processStream (InputStream& input, int64 numBytesToRead); void processStream (InputStream& input, int64 numBytesToRead);
@@ -17261,7 +17261,7 @@ public:
/** Indicates whether to use a case-insensitive search when looking up a string. /** Indicates whether to use a case-insensitive search when looking up a string.
This defaults to true. This defaults to true.
*/ */
void setIgnoresCase (const bool shouldIgnoreCase);
void setIgnoresCase (bool shouldIgnoreCase);


juce_UseDebuggingNewOperator juce_UseDebuggingNewOperator


@@ -17358,7 +17358,7 @@ public:
there was an error. there was an error.
@see getLastParseError @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. /** Returns the parsing error that occurred the last time getDocumentElement was called.


@@ -17377,7 +17377,7 @@ public:


@see InputSource @see InputSource
*/ */
void setInputSource (InputSource* const newSource) throw();
void setInputSource (InputSource* newSource) throw();


/** Sets a flag to change the treatment of empty text elements. /** 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 whitespace-only text, then you should set this to false before calling the
getDocumentElement() method. getDocumentElement() method.
*/ */
void setEmptyTextElementsIgnored (const bool shouldBeIgnored) throw();
void setEmptyTextElementsIgnored (bool shouldBeIgnored) throw();


juce_UseDebuggingNewOperator juce_UseDebuggingNewOperator


@@ -17405,7 +17405,7 @@ private:
void skipHeader(); void skipHeader();
void skipNextWhiteSpace(); void skipNextWhiteSpace();
juce_wchar readNextChar() throw(); juce_wchar readNextChar() throw();
XmlElement* readNextElement (const bool alsoParseSubElements);
XmlElement* readNextElement (bool alsoParseSubElements);
void readChildElements (XmlElement* parent); void readChildElements (XmlElement* parent);
int findNextTokenLength() throw(); int findNextTokenLength() throw();
void readQuotedString (String& result); void readQuotedString (String& result);
@@ -24134,7 +24134,7 @@ public:


A value of 0.0 is completely transparent, 1.0 is completely opaque. 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. /** Sets the context to use a gradient for its fill pattern.
*/ */
@@ -24661,7 +24661,7 @@ public:
For internal use only. For internal use only.
NB. The context will NOT be deleted by this object when it is deleted. NB. The context will NOT be deleted by this object when it is deleted.
*/ */
Graphics (LowLevelGraphicsContext* const internalContext) throw();
Graphics (LowLevelGraphicsContext* internalContext) throw();


/** @internal */ /** @internal */
LowLevelGraphicsContext* getInternalContext() const throw() { return context; } 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 be focused, but where you don't want the user to be able to affect it directly
by clicking. by clicking.
*/ */
void setMouseClickGrabsKeyboardFocus (const bool shouldGrabFocus);
void setMouseClickGrabsKeyboardFocus (bool shouldGrabFocus);


/** Returns the last value set with setMouseClickGrabsKeyboardFocus(). /** Returns the last value set with setMouseClickGrabsKeyboardFocus().


@@ -28064,7 +28064,7 @@ private:
class CommandTargetMessageInvoker : public MessageListener class CommandTargetMessageInvoker : public MessageListener
{ {
public: public:
CommandTargetMessageInvoker (ApplicationCommandTarget* const owner);
CommandTargetMessageInvoker (ApplicationCommandTarget* owner);
~CommandTargetMessageInvoker(); ~CommandTargetMessageInvoker();


void handleMessage (const Message& message); 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 @returns true if it's now enabled. If the device doesn't support it, this
will always return false. will always return false.
*/ */
bool setBufferUnderrunProtection (const bool shouldBeEnabled);
bool setBufferUnderrunProtection (bool shouldBeEnabled);


/** Returns the number of free blocks on the disk. /** Returns the number of free blocks on the disk.


@@ -31537,8 +31537,8 @@ public:
when this object is deleted; if false it will be when this object is deleted; if false it will be
left up to the caller to manage its lifetime left up to the caller to manage its lifetime
*/ */
AudioFormatReaderSource (AudioFormatReader* const sourceReader,
const bool deleteReaderWhenThisIsDeleted);
AudioFormatReaderSource (AudioFormatReader* sourceReader,
bool deleteReaderWhenThisIsDeleted);


/** Destructor. */ /** Destructor. */
~AudioFormatReaderSource(); ~AudioFormatReaderSource();
@@ -31943,7 +31943,7 @@ public:
/** Sets a gain to apply to the audio data. /** Sets a gain to apply to the audio data.
@see getGain @see getGain
*/ */
void setGain (const float newGain) throw();
void setGain (float newGain) throw();


/** Returns the current gain. /** Returns the current gain.
@see setGain @see setGain
@@ -32018,7 +32018,7 @@ public:
@param numberOfSamplesToBuffer the size of buffer to use for reading ahead @param numberOfSamplesToBuffer the size of buffer to use for reading ahead
*/ */
BufferingAudioSource (PositionableAudioSource* source, BufferingAudioSource (PositionableAudioSource* source,
const bool deleteSourceWhenDeleted,
bool deleteSourceWhenDeleted,
int numberOfSamplesToBuffer); int numberOfSamplesToBuffer);


/** Destructor. /** Destructor.
@@ -32094,8 +32094,8 @@ public:
this object is deleted this object is deleted
@param numChannels the number of channels to process @param numChannels the number of channels to process
*/ */
ResamplingAudioSource (AudioSource* const inputSource,
const bool deleteInputWhenDeleted,
ResamplingAudioSource (AudioSource* inputSource,
bool deleteInputWhenDeleted,
int numChannels = 2); int numChannels = 2);


/** Destructor. */ /** Destructor. */
@@ -32109,7 +32109,7 @@ public:
values will speed it up; lower values will slow it values will speed it up; lower values will slow it
down. The ratio must be greater than 0 down. The ratio must be greater than 0
*/ */
void setResamplingRatio (const double samplesInPerOutputSample);
void setResamplingRatio (double samplesInPerOutputSample);


/** Returns the current resampling ratio. /** Returns the current resampling ratio.


@@ -32136,7 +32136,7 @@ private:
HeapBlock<float*> destBuffers, srcBuffers; HeapBlock<float*> destBuffers, srcBuffers;


void setFilterCoefficients (double c1, double c2, double c3, double c4, double c5, double c6); 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 struct FilterState
{ {
@@ -32198,7 +32198,7 @@ public:
adjusted to maintain playback at the correct pitch. If adjusted to maintain playback at the correct pitch. If
this is 0, no sample-rate adjustment will be performed this is 0, no sample-rate adjustment will be performed
*/ */
void setSource (PositionableAudioSource* const newSource,
void setSource (PositionableAudioSource* newSource,
int readAheadBufferSize = 0, int readAheadBufferSize = 0,
double sourceSampleRateToCorrectFor = 0.0); double sourceSampleRateToCorrectFor = 0.0);


@@ -32243,7 +32243,7 @@ public:
@param newGain a factor by which to multiply the outgoing samples, @param newGain a factor by which to multiply the outgoing samples,
so 1.0 = 0dB, 0.5 = -6dB, 2.0 = 6dB, etc. 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. /** Returns the current gain setting.


@@ -32332,8 +32332,8 @@ public:
when this object is deleted, if false, the caller is when this object is deleted, if false, the caller is
responsible for its deletion responsible for its deletion
*/ */
ChannelRemappingAudioSource (AudioSource* const source,
const bool deleteSourceWhenDeleted);
ChannelRemappingAudioSource (AudioSource* source,
bool deleteSourceWhenDeleted);


/** Destructor. */ /** Destructor. */
~ChannelRemappingAudioSource(); ~ChannelRemappingAudioSource();
@@ -32341,14 +32341,14 @@ public:
/** Specifies a number of channels that this audio source must produce from its /** Specifies a number of channels that this audio source must produce from its
getNextAudioBlock() callback. getNextAudioBlock() callback.
*/ */
void setNumberOfChannelsToProduce (const int requiredNumberOfChannels) throw();
void setNumberOfChannelsToProduce (int requiredNumberOfChannels);


/** Clears any mapped channels. /** Clears any mapped channels.


After this, no channels are mapped, so this object will produce silence. Create After this, no channels are mapped, so this object will produce silence. Create
some mappings with setInputChannelMapping() and setOutputChannelMapping(). some mappings with setInputChannelMapping() and setOutputChannelMapping().
*/ */
void clearAllMappings() throw();
void clearAllMappings();


/** Creates an input channel mapping. /** Creates an input channel mapping.


@@ -32360,8 +32360,8 @@ public:
@param sourceChannelIndex the index of the input channel in the incoming audio data buffer @param sourceChannelIndex the index of the input channel in the incoming audio data buffer
during our getNextAudioBlock() callback during our getNextAudioBlock() callback
*/ */
void setInputChannelMapping (const int destChannelIndex,
const int sourceChannelIndex) throw();
void setInputChannelMapping (int destChannelIndex,
int sourceChannelIndex);


/** Creates an output channel mapping. /** Creates an output channel mapping.


@@ -32373,30 +32373,30 @@ public:
@param destChannelIndex the index of the output channel in the incoming audio data buffer @param destChannelIndex the index of the output channel in the incoming audio data buffer
during our getNextAudioBlock() callback 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 /** Returns the channel from our input that will be sent to channel inputChannelIndex of
our input audio source. 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 /** Returns the output channel to which channel outputChannelIndex of our input audio
source will be sent to. 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. /** Returns an XML object to encapsulate the state of the mappings.


@see restoreFromXml @see restoreFromXml
*/ */
XmlElement* createXml() const throw();
XmlElement* createXml() const;


/** Restores the mappings from an XML object created by createXML(). /** Restores the mappings from an XML object created by createXML().


@see createXml @see createXml
*/ */
void restoreFromXml (const XmlElement& e) throw();
void restoreFromXml (const XmlElement& e);


void prepareToPlay (int samplesPerBlockExpected, double sampleRate); void prepareToPlay (int samplesPerBlockExpected, double sampleRate);
void releaseResources(); void releaseResources();
@@ -32564,8 +32564,8 @@ public:
@param deleteInputWhenDeleted if true, the input source will be deleted when @param deleteInputWhenDeleted if true, the input source will be deleted when
this object is deleted this object is deleted
*/ */
IIRFilterAudioSource (AudioSource* const inputSource,
const bool deleteInputWhenDeleted);
IIRFilterAudioSource (AudioSource* inputSource,
bool deleteInputWhenDeleted);


/** Destructor. */ /** Destructor. */
~IIRFilterAudioSource(); ~IIRFilterAudioSource();
@@ -32632,8 +32632,7 @@ public:
called (unless the source is previously removed called (unless the source is previously removed
with the removeInputSource method) with the removeInputSource method)
*/ */
void addInputSource (AudioSource* newInput,
const bool deleteWhenRemoved);
void addInputSource (AudioSource* newInput, bool deleteWhenRemoved);


/** Removes an input source. /** Removes an input source.


@@ -32643,8 +32642,7 @@ public:
@param input the source to remove @param input the source to remove
@param deleteSource whether to delete this source after it's been removed @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. /** Removes all the input sources.


@@ -32718,10 +32716,10 @@ public:
~ToneGeneratorAudioSource(); ~ToneGeneratorAudioSource();


/** Sets the signal's amplitude. */ /** Sets the signal's amplitude. */
void setAmplitude (const float newAmplitude);
void setAmplitude (float newAmplitude);


/** Sets the signal's frequency. */ /** Sets the signal's frequency. */
void setFrequency (const double newFrequencyHz);
void setFrequency (double newFrequencyHz);


/** Implementation of the AudioSource method. */ /** Implementation of the AudioSource method. */
void prepareToPlay (int samplesPerBlockExpected, double sampleRate); void prepareToPlay (int samplesPerBlockExpected, double sampleRate);
@@ -34856,9 +34854,9 @@ private:
void repeatTimerCallback(); void repeatTimerCallback();
RepeatTimer& getRepeatTimer(); RepeatTimer& getRepeatTimer();


ButtonState updateState (const MouseEvent* const e);
ButtonState updateState (const MouseEvent*);
bool isShortcutPressed() const; bool isShortcutPressed() const;
void turnOffOtherButtonsInGroup (const bool sendChangeNotification);
void turnOffOtherButtonsInGroup (bool sendChangeNotification);


void flashButtonState(); void flashButtonState();
void sendClickMessage (const ModifierKeys& modifiers); void sendClickMessage (const ModifierKeys& modifiers);
@@ -39743,13 +39741,13 @@ public:


@see getNumFormats @see getNumFormats
*/ */
AudioPluginFormat* getFormat (const int index);
AudioPluginFormat* getFormat (int index);


/** Adds a format to the list. /** Adds a format to the list.


The object passed in will be owned and deleted by the manager. 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 /** Tries to load the type for this description, by trying all the formats
that this manager knows about. 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 By default this is on, and the progress bar will display a text string showing
its current percentage. its current percentage.
*/ */
void setPercentageDisplay (const bool shouldDisplayPercentage);
void setPercentageDisplay (bool shouldDisplayPercentage);


/** Gives the progress bar a string to display inside it. /** Gives the progress bar a string to display inside it.


@@ -49544,7 +49542,7 @@ public:
virtual void resizeEnd(); virtual void resizeEnd();


/** Checks the given bounds, and then sets the component to the corrected size. */ /** Checks the given bounds, and then sets the component to the corrected size. */
void setBoundsForComponent (Component* const component,
void setBoundsForComponent (Component* component,
const Rectangle<int>& bounds, const Rectangle<int>& bounds,
bool isStretchingTop, bool isStretchingTop,
bool isStretchingLeft, bool isStretchingLeft,
@@ -49622,7 +49620,7 @@ public:
from going offscreen from going offscreen
@see dragComponent @see dragComponent
*/ */
void startDraggingComponent (Component* const componentToDrag,
void startDraggingComponent (Component* componentToDrag,
ComponentBoundsConstrainer* constrainer); ComponentBoundsConstrainer* constrainer);


/** Call this from your mouseDrag() callback to move the component. /** Call this from your mouseDrag() callback to move the component.
@@ -49636,7 +49634,7 @@ public:
@param e the current mouse-drag event @param e the current mouse-drag event
@see dragComponent @see dragComponent
*/ */
void dragComponent (Component* const componentToDrag,
void dragComponent (Component* componentToDrag,
const MouseEvent& e); const MouseEvent& e);


juce_UseDebuggingNewOperator juce_UseDebuggingNewOperator
@@ -55123,7 +55121,7 @@ public:
is invoked. You can change this setting later with is invoked. You can change this setting later with
the setHoverTimeMillisecs() method the setHoverTimeMillisecs() method
*/ */
MouseHoverDetector (const int hoverTimeMillisecs = 400);
MouseHoverDetector (int hoverTimeMillisecs = 400);


/** Destructor. */ /** Destructor. */
virtual ~MouseHoverDetector(); virtual ~MouseHoverDetector();
@@ -55131,14 +55129,14 @@ public:
/** Changes the time for which the mouse has to stay still before it's considered /** Changes the time for which the mouse has to stay still before it's considered
to be hovering. to be hovering.
*/ */
void setHoverTimeMillisecs (const int newTimeInMillisecs);
void setHoverTimeMillisecs (int newTimeInMillisecs);


/** Changes the component that's being monitored for hovering. /** Changes the component that's being monitored for hovering.


Be careful not to delete a component that's being monitored without first Be careful not to delete a component that's being monitored without first
stopping or deleting the hover detector. stopping or deleting the hover detector.
*/ */
void setHoverComponent (Component* const newSourceComponent);
void setHoverComponent (Component* newSourceComponent);


protected: protected:


@@ -60791,9 +60789,7 @@ public:


const String getFormatName(); const String getFormatName();
bool canUnderstand (InputStream& input); bool canUnderstand (InputStream& input);

const Image decodeImage (InputStream& input); const Image decodeImage (InputStream& input);

bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); 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 @param newQuality a value 0 to 1.0, where 0 is low quality, 1.0 is best, or
any negative value is "default" quality any negative value is "default" quality
*/ */
void setQuality (const float newQuality);
void setQuality (float newQuality);


const String getFormatName(); const String getFormatName();

bool canUnderstand (InputStream& input); bool canUnderstand (InputStream& input);

const Image decodeImage (InputStream& input); const Image decodeImage (InputStream& input);

bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); bool writeImageToStream (const Image& sourceImage, OutputStream& destStream);


private: private:


+ 1
- 1
src/application/juce_ApplicationCommandTarget.h View File

@@ -240,7 +240,7 @@ private:
class CommandTargetMessageInvoker : public MessageListener class CommandTargetMessageInvoker : public MessageListener
{ {
public: public:
CommandTargetMessageInvoker (ApplicationCommandTarget* const owner);
CommandTargetMessageInvoker (ApplicationCommandTarget* owner);
~CommandTargetMessageInvoker(); ~CommandTargetMessageInvoker();
void handleMessage (const Message& message); void handleMessage (const Message& message);


+ 1
- 1
src/audio/audio_file_formats/juce_AudioCDBurner.h View File

@@ -99,7 +99,7 @@ public:
@returns true if it's now enabled. If the device doesn't support it, this @returns true if it's now enabled. If the device doesn't support it, this
will always return false. will always return false.
*/ */
bool setBufferUnderrunProtection (const bool shouldBeEnabled);
bool setBufferUnderrunProtection (bool shouldBeEnabled);
//============================================================================== //==============================================================================
/** Returns the number of free blocks on the disk. /** Returns the number of free blocks on the disk.


+ 2
- 2
src/audio/audio_sources/juce_AudioFormatReaderSource.h View File

@@ -49,8 +49,8 @@ public:
when this object is deleted; if false it will be when this object is deleted; if false it will be
left up to the caller to manage its lifetime left up to the caller to manage its lifetime
*/ */
AudioFormatReaderSource (AudioFormatReader* const sourceReader,
const bool deleteReaderWhenThisIsDeleted);
AudioFormatReaderSource (AudioFormatReader* sourceReader,
bool deleteReaderWhenThisIsDeleted);
/** Destructor. */ /** Destructor. */
~AudioFormatReaderSource(); ~AudioFormatReaderSource();


+ 1
- 1
src/audio/audio_sources/juce_AudioSourcePlayer.h View File

@@ -77,7 +77,7 @@ public:
/** Sets a gain to apply to the audio data. /** Sets a gain to apply to the audio data.
@see getGain @see getGain
*/ */
void setGain (const float newGain) throw();
void setGain (float newGain) throw();
/** Returns the current gain. /** Returns the current gain.
@see setGain @see setGain


+ 2
- 2
src/audio/audio_sources/juce_AudioTransportSource.h View File

@@ -76,7 +76,7 @@ public:
adjusted to maintain playback at the correct pitch. If adjusted to maintain playback at the correct pitch. If
this is 0, no sample-rate adjustment will be performed this is 0, no sample-rate adjustment will be performed
*/ */
void setSource (PositionableAudioSource* const newSource,
void setSource (PositionableAudioSource* newSource,
int readAheadBufferSize = 0, int readAheadBufferSize = 0,
double sourceSampleRateToCorrectFor = 0.0); double sourceSampleRateToCorrectFor = 0.0);
@@ -124,7 +124,7 @@ public:
@param newGain a factor by which to multiply the outgoing samples, @param newGain a factor by which to multiply the outgoing samples,
so 1.0 = 0dB, 0.5 = -6dB, 2.0 = 6dB, etc. 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. /** Returns the current gain setting.


+ 1
- 1
src/audio/audio_sources/juce_BufferingAudioSource.h View File

@@ -53,7 +53,7 @@ public:
@param numberOfSamplesToBuffer the size of buffer to use for reading ahead @param numberOfSamplesToBuffer the size of buffer to use for reading ahead
*/ */
BufferingAudioSource (PositionableAudioSource* source, BufferingAudioSource (PositionableAudioSource* source,
const bool deleteSourceWhenDeleted,
bool deleteSourceWhenDeleted,
int numberOfSamplesToBuffer); int numberOfSamplesToBuffer);
/** Destructor. /** Destructor.


+ 8
- 8
src/audio/audio_sources/juce_ChannelRemappingAudioSource.cpp View File

@@ -50,13 +50,13 @@ ChannelRemappingAudioSource::~ChannelRemappingAudioSource()
} }
//============================================================================== //==============================================================================
void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_) throw()
void ChannelRemappingAudioSource::setNumberOfChannelsToProduce (const int requiredNumberOfChannels_)
{ {
const ScopedLock sl (lock); const ScopedLock sl (lock);
requiredNumberOfChannels = requiredNumberOfChannels_; requiredNumberOfChannels = requiredNumberOfChannels_;
} }
void ChannelRemappingAudioSource::clearAllMappings() throw()
void ChannelRemappingAudioSource::clearAllMappings()
{ {
const ScopedLock sl (lock); const ScopedLock sl (lock);
@@ -64,7 +64,7 @@ void ChannelRemappingAudioSource::clearAllMappings() throw()
remappedOutputs.clear(); 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); const ScopedLock sl (lock);
@@ -74,7 +74,7 @@ void ChannelRemappingAudioSource::setInputChannelMapping (const int destIndex, c
remappedInputs.set (destIndex, sourceIndex); 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); const ScopedLock sl (lock);
@@ -84,7 +84,7 @@ void ChannelRemappingAudioSource::setOutputChannelMapping (const int sourceIndex
remappedOutputs.set (sourceIndex, destIndex); remappedOutputs.set (sourceIndex, destIndex);
} }
int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const throw()
int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannelIndex) const
{ {
const ScopedLock sl (lock); const ScopedLock sl (lock);
@@ -94,7 +94,7 @@ int ChannelRemappingAudioSource::getRemappedInputChannel (const int inputChannel
return -1; return -1;
} }
int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const throw()
int ChannelRemappingAudioSource::getRemappedOutputChannel (const int outputChannelIndex) const
{ {
const ScopedLock sl (lock); 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"); XmlElement* e = new XmlElement ("MAPPINGS");
@@ -182,7 +182,7 @@ XmlElement* ChannelRemappingAudioSource::createXml() const throw()
return e; return e;
} }
void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e) throw()
void ChannelRemappingAudioSource::restoreFromXml (const XmlElement& e)
{ {
if (e.hasTagName ("MAPPINGS")) if (e.hasTagName ("MAPPINGS"))
{ {


+ 12
- 12
src/audio/audio_sources/juce_ChannelRemappingAudioSource.h View File

@@ -58,8 +58,8 @@ public:
when this object is deleted, if false, the caller is when this object is deleted, if false, the caller is
responsible for its deletion responsible for its deletion
*/ */
ChannelRemappingAudioSource (AudioSource* const source,
const bool deleteSourceWhenDeleted);
ChannelRemappingAudioSource (AudioSource* source,
bool deleteSourceWhenDeleted);
/** Destructor. */ /** Destructor. */
~ChannelRemappingAudioSource(); ~ChannelRemappingAudioSource();
@@ -68,14 +68,14 @@ public:
/** Specifies a number of channels that this audio source must produce from its /** Specifies a number of channels that this audio source must produce from its
getNextAudioBlock() callback. getNextAudioBlock() callback.
*/ */
void setNumberOfChannelsToProduce (const int requiredNumberOfChannels) throw();
void setNumberOfChannelsToProduce (int requiredNumberOfChannels);
/** Clears any mapped channels. /** Clears any mapped channels.
After this, no channels are mapped, so this object will produce silence. Create After this, no channels are mapped, so this object will produce silence. Create
some mappings with setInputChannelMapping() and setOutputChannelMapping(). some mappings with setInputChannelMapping() and setOutputChannelMapping().
*/ */
void clearAllMappings() throw();
void clearAllMappings();
/** Creates an input channel mapping. /** Creates an input channel mapping.
@@ -87,8 +87,8 @@ public:
@param sourceChannelIndex the index of the input channel in the incoming audio data buffer @param sourceChannelIndex the index of the input channel in the incoming audio data buffer
during our getNextAudioBlock() callback during our getNextAudioBlock() callback
*/ */
void setInputChannelMapping (const int destChannelIndex,
const int sourceChannelIndex) throw();
void setInputChannelMapping (int destChannelIndex,
int sourceChannelIndex);
/** Creates an output channel mapping. /** Creates an output channel mapping.
@@ -100,18 +100,18 @@ public:
@param destChannelIndex the index of the output channel in the incoming audio data buffer @param destChannelIndex the index of the output channel in the incoming audio data buffer
during our getNextAudioBlock() callback 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 /** Returns the channel from our input that will be sent to channel inputChannelIndex of
our input audio source. 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 /** Returns the output channel to which channel outputChannelIndex of our input audio
source will be sent to. source will be sent to.
*/ */
int getRemappedOutputChannel (const int outputChannelIndex) const throw();
int getRemappedOutputChannel (int outputChannelIndex) const;
//============================================================================== //==============================================================================
@@ -119,13 +119,13 @@ public:
@see restoreFromXml @see restoreFromXml
*/ */
XmlElement* createXml() const throw();
XmlElement* createXml() const;
/** Restores the mappings from an XML object created by createXML(). /** Restores the mappings from an XML object created by createXML().
@see createXml @see createXml
*/ */
void restoreFromXml (const XmlElement& e) throw();
void restoreFromXml (const XmlElement& e);
//============================================================================== //==============================================================================
void prepareToPlay (int samplesPerBlockExpected, double sampleRate); void prepareToPlay (int samplesPerBlockExpected, double sampleRate);


+ 2
- 2
src/audio/audio_sources/juce_IIRFilterAudioSource.h View File

@@ -45,8 +45,8 @@ public:
@param deleteInputWhenDeleted if true, the input source will be deleted when @param deleteInputWhenDeleted if true, the input source will be deleted when
this object is deleted this object is deleted
*/ */
IIRFilterAudioSource (AudioSource* const inputSource,
const bool deleteInputWhenDeleted);
IIRFilterAudioSource (AudioSource* inputSource,
bool deleteInputWhenDeleted);
/** Destructor. */ /** Destructor. */
~IIRFilterAudioSource(); ~IIRFilterAudioSource();


+ 2
- 4
src/audio/audio_sources/juce_MixerAudioSource.h View File

@@ -65,8 +65,7 @@ public:
called (unless the source is previously removed called (unless the source is previously removed
with the removeInputSource method) with the removeInputSource method)
*/ */
void addInputSource (AudioSource* newInput,
const bool deleteWhenRemoved);
void addInputSource (AudioSource* newInput, bool deleteWhenRemoved);
/** Removes an input source. /** Removes an input source.
@@ -76,8 +75,7 @@ public:
@param input the source to remove @param input the source to remove
@param deleteSource whether to delete this source after it's been removed @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. /** Removes all the input sources.


+ 4
- 4
src/audio/audio_sources/juce_ResamplingAudioSource.h View File

@@ -47,8 +47,8 @@ public:
this object is deleted this object is deleted
@param numChannels the number of channels to process @param numChannels the number of channels to process
*/ */
ResamplingAudioSource (AudioSource* const inputSource,
const bool deleteInputWhenDeleted,
ResamplingAudioSource (AudioSource* inputSource,
bool deleteInputWhenDeleted,
int numChannels = 2); int numChannels = 2);
/** Destructor. */ /** Destructor. */
@@ -62,7 +62,7 @@ public:
values will speed it up; lower values will slow it values will speed it up; lower values will slow it
down. The ratio must be greater than 0 down. The ratio must be greater than 0
*/ */
void setResamplingRatio (const double samplesInPerOutputSample);
void setResamplingRatio (double samplesInPerOutputSample);
/** Returns the current resampling ratio. /** Returns the current resampling ratio.
@@ -91,7 +91,7 @@ private:
HeapBlock<float*> destBuffers, srcBuffers; HeapBlock<float*> destBuffers, srcBuffers;
void setFilterCoefficients (double c1, double c2, double c3, double c4, double c5, double c6); 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 struct FilterState
{ {


+ 2
- 2
src/audio/audio_sources/juce_ToneGeneratorAudioSource.h View File

@@ -46,10 +46,10 @@ public:
//============================================================================== //==============================================================================
/** Sets the signal's amplitude. */ /** Sets the signal's amplitude. */
void setAmplitude (const float newAmplitude);
void setAmplitude (float newAmplitude);
/** Sets the signal's frequency. */ /** Sets the signal's frequency. */
void setFrequency (const double newFrequencyHz);
void setFrequency (double newFrequencyHz);
//============================================================================== //==============================================================================


+ 2
- 2
src/audio/plugins/juce_AudioPluginFormatManager.h View File

@@ -64,14 +64,14 @@ public:
@see getNumFormats @see getNumFormats
*/ */
AudioPluginFormat* getFormat (const int index);
AudioPluginFormat* getFormat (int index);
//============================================================================== //==============================================================================
/** Adds a format to the list. /** Adds a format to the list.
The object passed in will be owned and deleted by the manager. The object passed in will be owned and deleted by the manager.
*/ */
void addFormat (AudioPluginFormat* const format);
void addFormat (AudioPluginFormat* format);
//============================================================================== //==============================================================================


+ 1
- 1
src/containers/juce_BigInteger.h View File

@@ -262,7 +262,7 @@ public:
/** Changes the sign of the number to be positive or negative. /** Changes the sign of the number to be positive or negative.
@see isNegative, negate @see isNegative, negate
*/ */
void setNegative (const bool shouldBeNegative) throw();
void setNegative (bool shouldBeNegative) throw();
/** Inverts the sign of the number. /** Inverts the sign of the number.
@see isNegative, setNegative @see isNegative, setNegative


+ 2
- 2
src/containers/juce_MemoryBlock.h View File

@@ -58,7 +58,7 @@ public:
@param dataToInitialiseFrom some data to copy into this block @param dataToInitialiseFrom some data to copy into this block
@param sizeInBytes how much space to use @param sizeInBytes how much space to use
*/ */
MemoryBlock (const void* const dataToInitialiseFrom,
MemoryBlock (const void* dataToInitialiseFrom,
const size_t sizeInBytes) throw(); const size_t sizeInBytes) throw();
/** Destructor. */ /** Destructor. */
@@ -145,7 +145,7 @@ public:
This block's size will be increased accordingly. This block's size will be increased accordingly.
*/ */
void append (const void* const data,
void append (const void* data,
const size_t numBytes) throw(); const size_t numBytes) throw();
/** Exchanges the contents of this and another memory block. /** Exchanges the contents of this and another memory block.


+ 2
- 2
src/containers/juce_PropertySet.h View File

@@ -50,7 +50,7 @@ public:
@param ignoreCaseOfKeyNames if true, the names of properties are compared in a @param ignoreCaseOfKeyNames if true, the names of properties are compared in a
case-insensitive way case-insensitive way
*/ */
PropertySet (const bool ignoreCaseOfKeyNames = false) throw();
PropertySet (bool ignoreCaseOfKeyNames = false) throw();
/** Creates a copy of another PropertySet. /** Creates a copy of another PropertySet.
*/ */
@@ -143,7 +143,7 @@ public:
an empty string an empty string
@see getXmlValue @see getXmlValue
*/ */
void setValue (const String& keyName, const XmlElement* const xml);
void setValue (const String& keyName, const XmlElement* xml);
//============================================================================== //==============================================================================
/** Deletes a property. /** Deletes a property.


+ 2
- 2
src/core/juce_Logger.h View File

@@ -57,8 +57,8 @@ public:
If deleteOldLogger is set to true, the existing logger will be If deleteOldLogger is set to true, the existing logger will be
deleted (if there is one). 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. /** Writes a string to the current logger.


+ 2
- 2
src/core/juce_Uuid.h View File

@@ -100,10 +100,10 @@ public:
@see getRawData @see getRawData
*/ */
Uuid (const uint8* const rawData);
Uuid (const uint8* rawData);
/** Sets this UUID from 16-bytes of raw data. */ /** Sets this UUID from 16-bytes of raw data. */
Uuid& operator= (const uint8* const rawData);
Uuid& operator= (const uint8* rawData);
//============================================================================== //==============================================================================


+ 1
- 1
src/cryptography/juce_MD5.h View File

@@ -116,7 +116,7 @@ private:
void processBlock (const void* data, size_t dataSize); void processBlock (const void* data, size_t dataSize);
void transform (const void* buffer); void transform (const void* buffer);
void finish (void* const result);
void finish (void* result);
}; };
void processStream (InputStream& input, int64 numBytesToRead); void processStream (InputStream& input, int64 numBytesToRead);


+ 2
- 2
src/gui/components/buttons/juce_Button.h View File

@@ -492,9 +492,9 @@ private:
void repeatTimerCallback(); void repeatTimerCallback();
RepeatTimer& getRepeatTimer(); RepeatTimer& getRepeatTimer();
ButtonState updateState (const MouseEvent* const e);
ButtonState updateState (const MouseEvent*);
bool isShortcutPressed() const; bool isShortcutPressed() const;
void turnOffOtherButtonsInGroup (const bool sendChangeNotification);
void turnOffOtherButtonsInGroup (bool sendChangeNotification);
void flashButtonState(); void flashButtonState();
void sendClickMessage (const ModifierKeys& modifiers); void sendClickMessage (const ModifierKeys& modifiers);


+ 1
- 1
src/gui/components/controls/juce_ProgressBar.h View File

@@ -70,7 +70,7 @@ public:
By default this is on, and the progress bar will display a text string showing By default this is on, and the progress bar will display a text string showing
its current percentage. its current percentage.
*/ */
void setPercentageDisplay (const bool shouldDisplayPercentage);
void setPercentageDisplay (bool shouldDisplayPercentage);
/** Gives the progress bar a string to display inside it. /** Gives the progress bar a string to display inside it.


+ 1
- 1
src/gui/components/juce_Component.h View File

@@ -1054,7 +1054,7 @@ public:
be focused, but where you don't want the user to be able to affect it directly be focused, but where you don't want the user to be able to affect it directly
by clicking. by clicking.
*/ */
void setMouseClickGrabsKeyboardFocus (const bool shouldGrabFocus);
void setMouseClickGrabsKeyboardFocus (bool shouldGrabFocus);
/** Returns the last value set with setMouseClickGrabsKeyboardFocus(). /** Returns the last value set with setMouseClickGrabsKeyboardFocus().


+ 1
- 1
src/gui/components/layout/juce_ComponentBoundsConstrainer.h View File

@@ -156,7 +156,7 @@ public:
virtual void resizeEnd(); virtual void resizeEnd();
/** Checks the given bounds, and then sets the component to the corrected size. */ /** Checks the given bounds, and then sets the component to the corrected size. */
void setBoundsForComponent (Component* const component,
void setBoundsForComponent (Component* component,
const Rectangle<int>& bounds, const Rectangle<int>& bounds,
bool isStretchingTop, bool isStretchingTop,
bool isStretchingLeft, bool isStretchingLeft,


+ 2
- 2
src/gui/components/mouse/juce_ComponentDragger.h View File

@@ -75,7 +75,7 @@ public:
from going offscreen from going offscreen
@see dragComponent @see dragComponent
*/ */
void startDraggingComponent (Component* const componentToDrag,
void startDraggingComponent (Component* componentToDrag,
ComponentBoundsConstrainer* constrainer); ComponentBoundsConstrainer* constrainer);
/** Call this from your mouseDrag() callback to move the component. /** Call this from your mouseDrag() callback to move the component.
@@ -89,7 +89,7 @@ public:
@param e the current mouse-drag event @param e the current mouse-drag event
@see dragComponent @see dragComponent
*/ */
void dragComponent (Component* const componentToDrag,
void dragComponent (Component* componentToDrag,
const MouseEvent& e); const MouseEvent& e);


+ 3
- 3
src/gui/components/mouse/juce_MouseHoverDetector.h View File

@@ -56,7 +56,7 @@ public:
is invoked. You can change this setting later with is invoked. You can change this setting later with
the setHoverTimeMillisecs() method the setHoverTimeMillisecs() method
*/ */
MouseHoverDetector (const int hoverTimeMillisecs = 400);
MouseHoverDetector (int hoverTimeMillisecs = 400);
/** Destructor. */ /** Destructor. */
virtual ~MouseHoverDetector(); virtual ~MouseHoverDetector();
@@ -65,14 +65,14 @@ public:
/** Changes the time for which the mouse has to stay still before it's considered /** Changes the time for which the mouse has to stay still before it's considered
to be hovering. to be hovering.
*/ */
void setHoverTimeMillisecs (const int newTimeInMillisecs);
void setHoverTimeMillisecs (int newTimeInMillisecs);
/** Changes the component that's being monitored for hovering. /** Changes the component that's being monitored for hovering.
Be careful not to delete a component that's being monitored without first Be careful not to delete a component that's being monitored without first
stopping or deleting the hover detector. stopping or deleting the hover detector.
*/ */
void setHoverComponent (Component* const newSourceComponent);
void setHoverComponent (Component* newSourceComponent);
protected: protected:


+ 2
- 2
src/gui/graphics/contexts/juce_Graphics.h View File

@@ -92,7 +92,7 @@ public:
A value of 0.0 is completely transparent, 1.0 is completely opaque. 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. /** Sets the context to use a gradient for its fill pattern.
*/ */
@@ -630,7 +630,7 @@ public:
For internal use only. For internal use only.
NB. The context will NOT be deleted by this object when it is deleted. NB. The context will NOT be deleted by this object when it is deleted.
*/ */
Graphics (LowLevelGraphicsContext* const internalContext) throw();
Graphics (LowLevelGraphicsContext* internalContext) throw();
/** @internal */ /** @internal */
LowLevelGraphicsContext* getInternalContext() const throw() { return context; } LowLevelGraphicsContext* getInternalContext() const throw() { return context; }


+ 1
- 6
src/gui/graphics/imaging/juce_ImageFileFormat.h View File

@@ -152,9 +152,7 @@ public:
//============================================================================== //==============================================================================
const String getFormatName(); const String getFormatName();
bool canUnderstand (InputStream& input); bool canUnderstand (InputStream& input);
const Image decodeImage (InputStream& input); const Image decodeImage (InputStream& input);
bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); 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 @param newQuality a value 0 to 1.0, where 0 is low quality, 1.0 is best, or
any negative value is "default" quality any negative value is "default" quality
*/ */
void setQuality (const float newQuality);
void setQuality (float newQuality);
//============================================================================== //==============================================================================
const String getFormatName(); const String getFormatName();
bool canUnderstand (InputStream& input); bool canUnderstand (InputStream& input);
const Image decodeImage (InputStream& input); const Image decodeImage (InputStream& input);
bool writeImageToStream (const Image& sourceImage, OutputStream& destStream); bool writeImageToStream (const Image& sourceImage, OutputStream& destStream);
private: private:


+ 1
- 1
src/text/juce_LocalisedStrings.h View File

@@ -180,7 +180,7 @@ public:
/** Indicates whether to use a case-insensitive search when looking up a string. /** Indicates whether to use a case-insensitive search when looking up a string.
This defaults to true. This defaults to true.
*/ */
void setIgnoresCase (const bool shouldIgnoreCase);
void setIgnoresCase (bool shouldIgnoreCase);
//============================================================================== //==============================================================================
juce_UseDebuggingNewOperator juce_UseDebuggingNewOperator


+ 4
- 4
src/text/juce_XmlDocument.h View File

@@ -96,7 +96,7 @@ public:
there was an error. there was an error.
@see getLastParseError @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. /** Returns the parsing error that occurred the last time getDocumentElement was called.
@@ -115,7 +115,7 @@ public:
@see InputSource @see InputSource
*/ */
void setInputSource (InputSource* const newSource) throw();
void setInputSource (InputSource* newSource) throw();
/** Sets a flag to change the treatment of empty text elements. /** 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 whitespace-only text, then you should set this to false before calling the
getDocumentElement() method. getDocumentElement() method.
*/ */
void setEmptyTextElementsIgnored (const bool shouldBeIgnored) throw();
void setEmptyTextElementsIgnored (bool shouldBeIgnored) throw();
//============================================================================== //==============================================================================
juce_UseDebuggingNewOperator juce_UseDebuggingNewOperator
@@ -144,7 +144,7 @@ private:
void skipHeader(); void skipHeader();
void skipNextWhiteSpace(); void skipNextWhiteSpace();
juce_wchar readNextChar() throw(); juce_wchar readNextChar() throw();
XmlElement* readNextElement (const bool alsoParseSubElements);
XmlElement* readNextElement (bool alsoParseSubElements);
void readChildElements (XmlElement* parent); void readChildElements (XmlElement* parent);
int findNextTokenLength() throw(); int findNextTokenLength() throw();
void readQuotedString (String& result); void readQuotedString (String& result);


+ 2
- 2
src/text/juce_XmlElement.h View File

@@ -497,7 +497,7 @@ public:
@see getFirstChildElement, getNextElement, getNumChildElements, @see getFirstChildElement, getNextElement, getNumChildElements,
getChildElement, removeChildElement getChildElement, removeChildElement
*/ */
void addChildElement (XmlElement* const newChildElement) throw();
void addChildElement (XmlElement* newChildElement) throw();
/** Inserts an element into this element's list of children. /** Inserts an element into this element's list of children.
@@ -561,7 +561,7 @@ public:
void deleteAllChildElementsWithTagName (const String& tagName) throw(); void deleteAllChildElementsWithTagName (const String& tagName) throw();
/** Returns true if the given element is a child of this one. */ /** 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 /** Recursively searches all sub-elements to find one that contains the specified
child element. child element.


Loading…
Cancel
Save