Use lambdas for QtConcurrent::run instead of NewClosure

This commit is contained in:
Jonas Kvinge
2020-07-18 16:28:39 +02:00
parent 425dac478e
commit af67de8aa6
12 changed files with 25 additions and 47 deletions

View File

@@ -20,7 +20,7 @@
#include "config.h"
#include <QtConcurrentRun>
#include <QtConcurrent>
#include <QtAlgorithms>
#include <QList>
#include <QUrl>
@@ -83,7 +83,7 @@ void SongLoaderInserter::Load(Playlist *destination, int row, bool play_now, boo
deleteLater();
}
else {
QtConcurrent::run(this, &SongLoaderInserter::AsyncLoad);
(void)QtConcurrent::run([=]{ AsyncLoad(); });
}
}