mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-02 20:36:44 +01:00
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.
|
||||
std::sort(image_urls.begin(), image_urls.end(),
|
||||
[](decltype(image_urls)::const_reference a,
|
||||
decltype(image_urls)::const_reference b) {
|
||||
[](const QPair<QUrl, QSize>& a,
|
||||
const QPair<QUrl, QSize>& b) {
|
||||
// Sorted by area ascending.
|
||||
return (a.second.height() * a.second.width()) <
|
||||
(b.second.height() * b.second.width());
|
||||
|
Loading…
x
Reference in New Issue
Block a user