1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Minor code clean-ups.

This commit is contained in:
Julian Storer 2010-09-02 13:31:47 +01:00
parent b161c0f437
commit cac473bb1e
8 changed files with 27 additions and 27 deletions

View file

@ -18601,7 +18601,7 @@ const String ApplicationCommandManager::getDescriptionOfCommand (const CommandID
: String::empty;
}
const StringArray ApplicationCommandManager::getCommandCategories() const throw()
const StringArray ApplicationCommandManager::getCommandCategories() const
{
StringArray s;
@ -18611,7 +18611,7 @@ const StringArray ApplicationCommandManager::getCommandCategories() const throw(
return s;
}
const Array <CommandID> ApplicationCommandManager::getCommandsInCategory (const String& categoryName) const throw()
const Array <CommandID> ApplicationCommandManager::getCommandsInCategory (const String& categoryName) const
{
Array <CommandID> results;
@ -18746,12 +18746,12 @@ ApplicationCommandTarget* ApplicationCommandManager::findDefaultComponentTarget(
return JUCEApplication::getInstance();
}
void ApplicationCommandManager::addListener (ApplicationCommandManagerListener* const listener) throw()
void ApplicationCommandManager::addListener (ApplicationCommandManagerListener* const listener)
{
listeners.add (listener);
}
void ApplicationCommandManager::removeListener (ApplicationCommandManagerListener* const listener) throw()
void ApplicationCommandManager::removeListener (ApplicationCommandManagerListener* const listener)
{
listeners.remove (listener);
}
@ -18913,7 +18913,7 @@ bool ApplicationCommandTarget::invokeDirectly (const CommandID commandID, const
return invoke (info, asynchronously);
}
ApplicationCommandTarget::InvocationInfo::InvocationInfo (const CommandID commandID_) throw()
ApplicationCommandTarget::InvocationInfo::InvocationInfo (const CommandID commandID_)
: commandID (commandID_),
commandFlags (0),
invocationMethod (direct),
@ -27527,7 +27527,7 @@ MidiBuffer& MidiBuffer::operator= (const MidiBuffer& other) throw()
return *this;
}
void MidiBuffer::swapWith (MidiBuffer& other)
void MidiBuffer::swapWith (MidiBuffer& other) throw()
{
data.swapWith (other.data);
swapVariables <int> (bytesUsed, other.bytesUsed);

View file

@ -27966,7 +27966,7 @@ public:
struct JUCE_API InvocationInfo
{
InvocationInfo (const CommandID commandID) throw();
InvocationInfo (const CommandID commandID);
/** The UID of the command that should be performed. */
CommandID commandID;
@ -28971,7 +28971,7 @@ public:
The index is between 0 and (getNumCommands() - 1).
*/
const ApplicationCommandInfo* getCommandForIndex (int index) const throw() { return commands [index]; }
const ApplicationCommandInfo* getCommandForIndex (int index) const throw() { return commands [index]; }
/** Returns the details about a given command ID.
@ -29004,13 +29004,13 @@ public:
@see getCommandsInCategory()
*/
const StringArray getCommandCategories() const throw();
const StringArray getCommandCategories() const;
/** Returns a list of all the command UIDs in a particular category.
@see getCommandCategories()
*/
const Array <CommandID> getCommandsInCategory (const String& categoryName) const throw();
const Array <CommandID> getCommandsInCategory (const String& categoryName) const;
/** Returns the manager's internal set of key mappings.
@ -29092,10 +29092,10 @@ public:
ApplicationCommandInfo& upToDateInfo);
/** Registers a listener that will be called when various events occur. */
void addListener (ApplicationCommandManagerListener* listener) throw();
void addListener (ApplicationCommandManagerListener* listener);
/** Deregisters a previously-added listener. */
void removeListener (ApplicationCommandManagerListener* listener) throw();
void removeListener (ApplicationCommandManagerListener* listener);
/** Looks for a suitable command target based on which Components have the keyboard focus.
@ -34103,7 +34103,7 @@ public:
This is a quick operation, because no memory allocating or copying is done, it
just swaps the internal state of the two buffers.
*/
void swapWith (MidiBuffer& other);
void swapWith (MidiBuffer& other) throw();
/** Preallocates some memory for the buffer to use.
This helps to avoid needing to reallocate space when the buffer has messages

View file

@ -154,7 +154,7 @@ const String ApplicationCommandManager::getDescriptionOfCommand (const CommandID
: String::empty;
}
const StringArray ApplicationCommandManager::getCommandCategories() const throw()
const StringArray ApplicationCommandManager::getCommandCategories() const
{
StringArray s;
@ -164,7 +164,7 @@ const StringArray ApplicationCommandManager::getCommandCategories() const throw(
return s;
}
const Array <CommandID> ApplicationCommandManager::getCommandsInCategory (const String& categoryName) const throw()
const Array <CommandID> ApplicationCommandManager::getCommandsInCategory (const String& categoryName) const
{
Array <CommandID> results;
@ -303,12 +303,12 @@ ApplicationCommandTarget* ApplicationCommandManager::findDefaultComponentTarget(
}
//==============================================================================
void ApplicationCommandManager::addListener (ApplicationCommandManagerListener* const listener) throw()
void ApplicationCommandManager::addListener (ApplicationCommandManagerListener* const listener)
{
listeners.add (listener);
}
void ApplicationCommandManager::removeListener (ApplicationCommandManagerListener* const listener) throw()
void ApplicationCommandManager::removeListener (ApplicationCommandManagerListener* const listener)
{
listeners.remove (listener);
}

View file

@ -155,13 +155,13 @@ public:
@see registerCommand
*/
int getNumCommands() const throw() { return commands.size(); }
int getNumCommands() const throw() { return commands.size(); }
/** Returns the details about one of the registered commands.
The index is between 0 and (getNumCommands() - 1).
*/
const ApplicationCommandInfo* getCommandForIndex (int index) const throw() { return commands [index]; }
const ApplicationCommandInfo* getCommandForIndex (int index) const throw() { return commands [index]; }
/** Returns the details about a given command ID.
@ -194,13 +194,13 @@ public:
@see getCommandsInCategory()
*/
const StringArray getCommandCategories() const throw();
const StringArray getCommandCategories() const;
/** Returns a list of all the command UIDs in a particular category.
@see getCommandCategories()
*/
const Array <CommandID> getCommandsInCategory (const String& categoryName) const throw();
const Array <CommandID> getCommandsInCategory (const String& categoryName) const;
//==============================================================================
/** Returns the manager's internal set of key mappings.
@ -288,10 +288,10 @@ public:
//==============================================================================
/** Registers a listener that will be called when various events occur. */
void addListener (ApplicationCommandManagerListener* listener) throw();
void addListener (ApplicationCommandManagerListener* listener);
/** Deregisters a previously-added listener. */
void removeListener (ApplicationCommandManagerListener* listener) throw();
void removeListener (ApplicationCommandManagerListener* listener);
//==============================================================================
/** Looks for a suitable command target based on which Components have the keyboard focus.

View file

@ -170,7 +170,7 @@ bool ApplicationCommandTarget::invokeDirectly (const CommandID commandID, const
}
//==============================================================================
ApplicationCommandTarget::InvocationInfo::InvocationInfo (const CommandID commandID_) throw()
ApplicationCommandTarget::InvocationInfo::InvocationInfo (const CommandID commandID_)
: commandID (commandID_),
commandFlags (0),
invocationMethod (direct),

View file

@ -61,7 +61,7 @@ public:
struct JUCE_API InvocationInfo
{
//==============================================================================
InvocationInfo (const CommandID commandID) throw();
InvocationInfo (const CommandID commandID);
//==============================================================================
/** The UID of the command that should be performed. */

View file

@ -56,7 +56,7 @@ MidiBuffer& MidiBuffer::operator= (const MidiBuffer& other) throw()
return *this;
}
void MidiBuffer::swapWith (MidiBuffer& other)
void MidiBuffer::swapWith (MidiBuffer& other) throw()
{
data.swapWith (other.data);
swapVariables <int> (bytesUsed, other.bytesUsed);

View file

@ -153,7 +153,7 @@ public:
This is a quick operation, because no memory allocating or copying is done, it
just swaps the internal state of the two buffers.
*/
void swapWith (MidiBuffer& other);
void swapWith (MidiBuffer& other) throw();
/** Preallocates some memory for the buffer to use.
This helps to avoid needing to reallocate space when the buffer has messages