From f6d2564bf5ffe11e4051d013ad9d45b7b8a65f46 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 25 Oct 2012 16:32:19 +0200 Subject: [PATCH] Use std::mem_fun instead of boost::bind where it makes sense. --- src/covers/musicbrainzcoverprovider.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/covers/musicbrainzcoverprovider.cpp b/src/covers/musicbrainzcoverprovider.cpp index 937b15b5a..fbf386240 100644 --- a/src/covers/musicbrainzcoverprovider.cpp +++ b/src/covers/musicbrainzcoverprovider.cpp @@ -18,14 +18,15 @@ #include "musicbrainzcoverprovider.h" #include - -#include +#include #include #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 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 results;