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

Removed some erroneous noexcepts

This commit is contained in:
jules 2018-07-25 12:18:43 +01:00
parent 13a4f5126f
commit a658ad41de
6 changed files with 14 additions and 14 deletions

View file

@ -129,12 +129,12 @@ void MPEInstrument::setTimbreTrackingMode (TrackingMode modeToUse)
}
//==============================================================================
void MPEInstrument::addListener (Listener* const listenerToAdd) noexcept
void MPEInstrument::addListener (Listener* listenerToAdd)
{
listeners.add (listenerToAdd);
}
void MPEInstrument::removeListener (Listener* const listenerToRemove) noexcept
void MPEInstrument::removeListener (Listener* listenerToRemove)
{
listeners.remove (listenerToRemove);
}

View file

@ -286,10 +286,10 @@ public:
//==============================================================================
/** Adds a listener. */
void addListener (Listener* listenerToAdd) noexcept;
void addListener (Listener* listenerToAdd);
/** Removes a listener. */
void removeListener (Listener* listenerToRemove) noexcept;
void removeListener (Listener* listenerToRemove);
//==============================================================================
/** Puts the instrument into legacy mode.

View file

@ -43,7 +43,7 @@ void MenuBarModel::menuItemsChanged()
triggerAsyncUpdate();
}
void MenuBarModel::setApplicationCommandManagerToWatch (ApplicationCommandManager* const newManager) noexcept
void MenuBarModel::setApplicationCommandManagerToWatch (ApplicationCommandManager* newManager)
{
if (manager != newManager)
{
@ -57,12 +57,12 @@ void MenuBarModel::setApplicationCommandManagerToWatch (ApplicationCommandManage
}
}
void MenuBarModel::addListener (Listener* const newListener) noexcept
void MenuBarModel::addListener (Listener* newListener)
{
listeners.add (newListener);
}
void MenuBarModel::removeListener (Listener* const listenerToRemove) noexcept
void MenuBarModel::removeListener (Listener* listenerToRemove)
{
// Trying to remove a listener that isn't on the list!
// If this assertion happens because this object is a dangling pointer, make sure you've not

View file

@ -69,7 +69,7 @@ public:
This will also allow it to flash a menu name when a command from that menu
is invoked using a keystroke.
*/
void setApplicationCommandManagerToWatch (ApplicationCommandManager* manager) noexcept;
void setApplicationCommandManagerToWatch (ApplicationCommandManager* manager);
//==============================================================================
/** A class to receive callbacks when a MenuBarModel changes.
@ -104,12 +104,12 @@ public:
@see removeListener
*/
void addListener (Listener* listenerToAdd) noexcept;
void addListener (Listener* listenerToAdd);
/** Removes a listener.
@see addListener
*/
void removeListener (Listener* listenerToRemove) noexcept;
void removeListener (Listener* listenerToRemove);
//==============================================================================
/** This method must return a list of the names of the menus. */

View file

@ -755,8 +755,8 @@ void CodeDocument::checkLastLineStatus()
}
//==============================================================================
void CodeDocument::addListener (CodeDocument::Listener* l) noexcept { listeners.add (l); }
void CodeDocument::removeListener (CodeDocument::Listener* l) noexcept { listeners.remove (l); }
void CodeDocument::addListener (CodeDocument::Listener* l) { listeners.add (l); }
void CodeDocument::removeListener (CodeDocument::Listener* l) { listeners.remove (l); }
//==============================================================================
struct CodeDocument::InsertAction : public UndoableAction

View file

@ -340,12 +340,12 @@ public:
If the listener is already registered, this method has no effect.
@see removeListener
*/
void addListener (Listener* listener) noexcept;
void addListener (Listener* listener);
/** Deregisters a listener.
@see addListener
*/
void removeListener (Listener* listener) noexcept;
void removeListener (Listener* listener);
//==============================================================================
/** Iterates the text in a CodeDocument.