Browse Source

Removed some erroneous noexcepts

tags/2021-05-28
jules 7 years ago
parent
commit
a658ad41de
6 changed files with 14 additions and 14 deletions
  1. +2
    -2
      modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp
  2. +2
    -2
      modules/juce_audio_basics/mpe/juce_MPEInstrument.h
  3. +3
    -3
      modules/juce_gui_basics/menus/juce_MenuBarModel.cpp
  4. +3
    -3
      modules/juce_gui_basics/menus/juce_MenuBarModel.h
  5. +2
    -2
      modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp
  6. +2
    -2
      modules/juce_gui_extra/code_editor/juce_CodeDocument.h

+ 2
- 2
modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp 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); listeners.add (listenerToAdd);
} }
void MPEInstrument::removeListener (Listener* const listenerToRemove) noexcept
void MPEInstrument::removeListener (Listener* listenerToRemove)
{ {
listeners.remove (listenerToRemove); listeners.remove (listenerToRemove);
} }


+ 2
- 2
modules/juce_audio_basics/mpe/juce_MPEInstrument.h View File

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


+ 3
- 3
modules/juce_gui_basics/menus/juce_MenuBarModel.cpp View File

@@ -43,7 +43,7 @@ void MenuBarModel::menuItemsChanged()
triggerAsyncUpdate(); triggerAsyncUpdate();
} }
void MenuBarModel::setApplicationCommandManagerToWatch (ApplicationCommandManager* const newManager) noexcept
void MenuBarModel::setApplicationCommandManagerToWatch (ApplicationCommandManager* newManager)
{ {
if (manager != 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); 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! // 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 // If this assertion happens because this object is a dangling pointer, make sure you've not


+ 3
- 3
modules/juce_gui_basics/menus/juce_MenuBarModel.h View File

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


+ 2
- 2
modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp 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 struct CodeDocument::InsertAction : public UndoableAction


+ 2
- 2
modules/juce_gui_extra/code_editor/juce_CodeDocument.h View File

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


Loading…
Cancel
Save