1
0
Fork 0
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:
jules 2017-11-28 16:18:40 +00:00
parent 3dcd918ddd
commit a586966c65
185 changed files with 469 additions and 1268 deletions

View file

@ -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)