mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-19 19:16:34 +00:00
Made various corrections following a quick for-loop constness audit.
This commit is contained in:
@@ -98,7 +98,7 @@ void DeferringAsyncTaskQueue::perform() {
|
||||
std::shared_ptr<std::list<std::function<void(void)>>> deferred_tasks = deferred_tasks_;
|
||||
deferred_tasks_.reset();
|
||||
enqueue([deferred_tasks] {
|
||||
for(auto &function : *deferred_tasks) {
|
||||
for(const auto &function : *deferred_tasks) {
|
||||
function();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user