mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-30 04:50:08 +00:00
Dodges a lambda copy.
This commit is contained in:
parent
e956740c56
commit
131b340d75
@ -91,7 +91,7 @@ class Speaker {
|
||||
std::shared_ptr<std::list<std::function<void(void)>>> queued_functions = queued_functions_;
|
||||
queued_functions_.reset();
|
||||
_queue->enqueue([queued_functions] {
|
||||
for(auto function : *queued_functions) {
|
||||
for(auto &function : *queued_functions) {
|
||||
function();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user