1
0
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:
Thomas Harte
2018-04-30 22:23:57 -04:00
parent 9da481b060
commit f4097290c2
19 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -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();
}
});