From 9a9502f302afe2a6e4e7bf21be565a3537e91360 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 19 Jun 2007 19:50:19 +0000 Subject: [PATCH] --- .../gui/components/buttons/juce_Button.cpp | 8 ++++---- .../gui/components/buttons/juce_Button.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/juce_appframework/gui/components/buttons/juce_Button.cpp b/src/juce_appframework/gui/components/buttons/juce_Button.cpp index f3f671d263..cc2b734a17 100644 --- a/src/juce_appframework/gui/components/buttons/juce_Button.cpp +++ b/src/juce_appframework/gui/components/buttons/juce_Button.cpp @@ -78,7 +78,7 @@ Button::~Button() } //============================================================================== -void Button::setButtonText (const String& newText) +void Button::setButtonText (const String& newText) throw() { if (text != newText) { @@ -145,7 +145,7 @@ void Button::setToggleState (const bool shouldBeOn, } } -void Button::setClickingTogglesState (const bool shouldToggle) +void Button::setClickingTogglesState (const bool shouldToggle) throw() { clickTogglesState = shouldToggle; @@ -333,7 +333,7 @@ void Button::handleCommandMessage (int commandId) } //============================================================================== -void Button::addButtonListener (ButtonListener* const newListener) +void Button::addButtonListener (ButtonListener* const newListener) throw() { jassert (newListener != 0); jassert (! buttonListeners.contains (newListener)); // trying to add a listener to the list twice! @@ -342,7 +342,7 @@ void Button::addButtonListener (ButtonListener* const newListener) buttonListeners.add (newListener); } -void Button::removeButtonListener (ButtonListener* const listener) +void Button::removeButtonListener (ButtonListener* const listener) throw() { jassert (buttonListeners.contains (listener)); // trying to remove a listener that isn't on the list! diff --git a/src/juce_appframework/gui/components/buttons/juce_Button.h b/src/juce_appframework/gui/components/buttons/juce_Button.h index 19d69c323b..a9a91a9b52 100644 --- a/src/juce_appframework/gui/components/buttons/juce_Button.h +++ b/src/juce_appframework/gui/components/buttons/juce_Button.h @@ -95,7 +95,7 @@ public: @see getButtonText */ - void setButtonText (const String& newText); + void setButtonText (const String& newText) throw(); /** Returns the text displayed in the button. @@ -153,7 +153,7 @@ public: If set to true, then before the clicked() callback occurs, the toggle-state of the button is flipped. */ - void setClickingTogglesState (const bool shouldToggle); + void setClickingTogglesState (const bool shouldToggle) throw(); /** Returns true if this button is set to be an automatic toggle-button. @@ -194,13 +194,13 @@ public: @see removeButtonListener */ - void addButtonListener (ButtonListener* const newListener); + void addButtonListener (ButtonListener* const newListener) throw(); /** Removes a previously-registered button listener @see addButtonListener */ - void removeButtonListener (ButtonListener* const listener); + void removeButtonListener (ButtonListener* const listener) throw(); //============================================================================== /** Causes the button to act as if it's been clicked.