mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +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_;
|
std::shared_ptr<std::list<std::function<void(void)>>> queued_functions = queued_functions_;
|
||||||
queued_functions_.reset();
|
queued_functions_.reset();
|
||||||
_queue->enqueue([queued_functions] {
|
_queue->enqueue([queued_functions] {
|
||||||
for(auto function : *queued_functions) {
|
for(auto &function : *queued_functions) {
|
||||||
function();
|
function();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user