Too clever for old GCC versions.
This commit is contained in:
parent
1304f8898e
commit
52c72f95ba
|
@ -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.
|
// All the images are the same just different sizes; just pick the largest.
|
||||||
std::sort(image_urls.begin(), image_urls.end(),
|
std::sort(image_urls.begin(), image_urls.end(),
|
||||||
[](decltype(image_urls)::const_reference a,
|
[](const QPair<QUrl, QSize>& a,
|
||||||
decltype(image_urls)::const_reference b) {
|
const QPair<QUrl, QSize>& b) {
|
||||||
// Sorted by area ascending.
|
// Sorted by area ascending.
|
||||||
return (a.second.height() * a.second.width()) <
|
return (a.second.height() * a.second.width()) <
|
||||||
(b.second.height() * b.second.width());
|
(b.second.height() * b.second.width());
|
||||||
|
|
Loading…
Reference in New Issue