1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Dodges a lambda copy.

This commit is contained in:
Thomas Harte 2017-08-22 21:55:10 -04:00
parent e956740c56
commit 131b340d75

View File

@ -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();
}
});