const mistake

This commit is contained in:
David Rose 2008-09-19 18:06:57 +00:00
parent 2ea1a241a1
commit 8b0461fadd

View File

@ -606,7 +606,7 @@ remove_task_by_name(AsyncTask *task) {
if (!task->get_name().empty()) {
// We have to scan linearly through all of the tasks with the same
// name.
TasksByName::const_iterator tbni = _tasks_by_name.lower_bound(task);
TasksByName::iterator tbni = _tasks_by_name.lower_bound(task);
while (tbni != _tasks_by_name.end()) {
if ((*tbni) == task) {
_tasks_by_name.erase(tbni);