Browse Source

Minor code clean-ups.

tags/2021-05-28
Julian Storer 15 years ago
parent
commit
cac473bb1e
8 changed files with 27 additions and 27 deletions
  1. +6
    -6
      juce_amalgamated.cpp
  2. +7
    -7
      juce_amalgamated.h
  3. +4
    -4
      src/application/juce_ApplicationCommandManager.cpp
  4. +6
    -6
      src/application/juce_ApplicationCommandManager.h
  5. +1
    -1
      src/application/juce_ApplicationCommandTarget.cpp
  6. +1
    -1
      src/application/juce_ApplicationCommandTarget.h
  7. +1
    -1
      src/audio/midi/juce_MidiBuffer.cpp
  8. +1
    -1
      src/audio/midi/juce_MidiBuffer.h

+ 6
- 6
juce_amalgamated.cpp 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);


+ 7
- 7
juce_amalgamated.h 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


+ 4
- 4
src/application/juce_ApplicationCommandManager.cpp 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);
}


+ 6
- 6
src/application/juce_ApplicationCommandManager.h 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.


+ 1
- 1
src/application/juce_ApplicationCommandTarget.cpp 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),


+ 1
- 1
src/application/juce_ApplicationCommandTarget.h 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. */


+ 1
- 1
src/audio/midi/juce_MidiBuffer.cpp 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);


+ 1
- 1
src/audio/midi/juce_MidiBuffer.h 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


Loading…
Cancel
Save