1
0
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:
John Maguire 2012-10-25 16:32:19 +02:00
parent 9c7526ccbb
commit f6d2564bf5

View File

@ -18,14 +18,15 @@
#include "musicbrainzcoverprovider.h"
#include <algorithm>
#include <boost/bind.hpp>
#include <functional>
#include <QXmlStreamReader>
#include "core/closure.h"
#include "core/network.h"
using std::mem_fun;
namespace {
static const char* kReleaseSearchUrl =
@ -99,7 +100,7 @@ void MusicbrainzCoverProvider::ImageCheckFinished(int id) {
QList<QNetworkReply*> replies = image_checks_.values(id);
int finished_count = std::count_if(
replies.constBegin(), replies.constEnd(),
boost::bind(&QNetworkReply::isFinished, _1));
mem_fun(&QNetworkReply::isFinished));
if (finished_count == replies.size()) {
QString cover_name = cover_names_.take(id);
QList<CoverSearchResult> results;