mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added lambda callback methods to ListenerList. Its old method-invocation callbacks were refactored to use variadic templates instead of the old awful macros they used in the past, but please move your code to use the new lambda functions, as the one stuff will eventually be deprecated!
This commit is contained in:
parent
3dcd918ddd
commit
a586966c65
185 changed files with 469 additions and 1268 deletions
|
|
@ -629,7 +629,7 @@ void ComboBox::removeListener (ComboBoxListener* listener) { listeners.remove
|
|||
void ComboBox::handleAsyncUpdate()
|
||||
{
|
||||
Component::BailOutChecker checker (this);
|
||||
listeners.callChecked (checker, &ComboBox::Listener::comboBoxChanged, this);
|
||||
listeners.callChecked (checker, [this] (Listener& l) { l.comboBoxChanged (this); });
|
||||
}
|
||||
|
||||
void ComboBox::sendChange (const NotificationType notification)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue