AlbumCoverLoader: Remove const
This commit is contained in:
parent
3f3059c98b
commit
b964385024
|
@ -93,7 +93,7 @@ void AlbumCoverLoader::CancelTasks(const QSet<quint64> &ids) {
|
||||||
|
|
||||||
QMutexLocker l(&mutex_load_image_async_);
|
QMutexLocker l(&mutex_load_image_async_);
|
||||||
for (QQueue<TaskPtr>::iterator it = tasks_.begin(); it != tasks_.end();) {
|
for (QQueue<TaskPtr>::iterator it = tasks_.begin(); it != tasks_.end();) {
|
||||||
const TaskPtr task = *it;
|
TaskPtr task = *it;
|
||||||
if (ids.contains(task->id)) {
|
if (ids.contains(task->id)) {
|
||||||
it = tasks_.erase(it);
|
it = tasks_.erase(it);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue