mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-16 11:42:05 +01:00
Use std::mem_fun instead of boost::bind where it makes sense.
This commit is contained in:
parent
9c7526ccbb
commit
f6d2564bf5
@ -18,14 +18,15 @@
|
|||||||
#include "musicbrainzcoverprovider.h"
|
#include "musicbrainzcoverprovider.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <functional>
|
||||||
#include <boost/bind.hpp>
|
|
||||||
|
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
|
|
||||||
#include "core/closure.h"
|
#include "core/closure.h"
|
||||||
#include "core/network.h"
|
#include "core/network.h"
|
||||||
|
|
||||||
|
using std::mem_fun;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
static const char* kReleaseSearchUrl =
|
static const char* kReleaseSearchUrl =
|
||||||
@ -99,7 +100,7 @@ void MusicbrainzCoverProvider::ImageCheckFinished(int id) {
|
|||||||
QList<QNetworkReply*> replies = image_checks_.values(id);
|
QList<QNetworkReply*> replies = image_checks_.values(id);
|
||||||
int finished_count = std::count_if(
|
int finished_count = std::count_if(
|
||||||
replies.constBegin(), replies.constEnd(),
|
replies.constBegin(), replies.constEnd(),
|
||||||
boost::bind(&QNetworkReply::isFinished, _1));
|
mem_fun(&QNetworkReply::isFinished));
|
||||||
if (finished_count == replies.size()) {
|
if (finished_count == replies.size()) {
|
||||||
QString cover_name = cover_names_.take(id);
|
QString cover_name = cover_names_.take(id);
|
||||||
QList<CoverSearchResult> results;
|
QList<CoverSearchResult> results;
|
||||||
|
Loading…
Reference in New Issue
Block a user