bruns added inline comments. INLINE COMMENTS
> tcanabrava wrote in svg.cpp:342-349 > looks a good example of code that could be written with an std::find_if You either have to sort on `bestFit.area()` first, or do the find_if in a nested loop, to find a better match (smaller one) after the first one. > svg.cpp:346 > (!bestFit.isValid() || > (bestFit.width() * bestFit.height()) > > (hint.width() * hint.height()))) { > bestFit = hint; can you swap bestFit and hint (and reverse the `>`) here, makes it easier to read IMHO (i.e. the comment says "smallest one", so the check should be `<`). REPOSITORY R242 Plasma Framework (Library) REVISION DETAIL https://phabricator.kde.org/D22147 To: apol, #plasma, #frameworks, fvogt Cc: bruns, tcanabrava, fvogt, broulik, kde-frameworks-devel, LeGast00n, michaelh, ngraham