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

Removed some old compiler bug workarounds

This commit is contained in:
jules 2017-08-14 10:45:51 +01:00
parent ee4993f0ff
commit 357dd2c9c9
53 changed files with 102 additions and 130 deletions

View file

@ -394,15 +394,8 @@ void Button::handleCommandMessage (int commandId)
}
//==============================================================================
void Button::addListener (ButtonListener* const newListener)
{
buttonListeners.add (newListener);
}
void Button::removeListener (ButtonListener* const listener)
{
buttonListeners.remove (listener);
}
void Button::addListener (Listener* l) { buttonListeners.add (l); }
void Button::removeListener (Listener* l) { buttonListeners.remove (l); }
void Button::sendClickMessage (const ModifierKeys& modifiers)
{
@ -420,7 +413,7 @@ void Button::sendClickMessage (const ModifierKeys& modifiers)
clicked (modifiers);
if (! checker.shouldBailOut())
buttonListeners.callChecked (checker, &ButtonListener::buttonClicked, this); // (can't use Button::Listener due to idiotic VC2005 bug)
buttonListeners.callChecked (checker, &Button::Listener::buttonClicked, this);
}
void Button::sendStateMessage()
@ -430,7 +423,7 @@ void Button::sendStateMessage()
buttonStateChanged();
if (! checker.shouldBailOut())
buttonListeners.callChecked (checker, &ButtonListener::buttonStateChanged, this);
buttonListeners.callChecked (checker, &Button::Listener::buttonStateChanged, this);
}
//==============================================================================