From 52c72f95ba9d8939d22db67d8e9f938f2e774bec Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 17 Feb 2016 16:42:03 +0000 Subject: [PATCH] Too clever for old GCC versions. --- src/songinfo/echonestimages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/songinfo/echonestimages.cpp b/src/songinfo/echonestimages.cpp index 9e0c5bdcf..08cfe4398 100644 --- a/src/songinfo/echonestimages.cpp +++ b/src/songinfo/echonestimages.cpp @@ -119,8 +119,8 @@ void EchoNestImages::DoSpotifyImageRequest(const QString& id, int request_id) { } // All the images are the same just different sizes; just pick the largest. std::sort(image_urls.begin(), image_urls.end(), - [](decltype(image_urls)::const_reference a, - decltype(image_urls)::const_reference b) { + [](const QPair& a, + const QPair& b) { // Sorted by area ascending. return (a.second.height() * a.second.width()) < (b.second.height() * b.second.width());