Files
qt-creator/src/plugins
Daniel Teske 6d2d3ab54d ProjectExplorer: Fix comparing priorities
Makes test_modelmanager_extraeditorsupport_uiFiles pass again. Before, a
"CMake Wizard" dialog blocked the auto test due to the wrong
comparisons.

The std::max_element function takes a less predicate. Thus the right way
to find e.g. highest int in a vector is:
std::max_element(..., std::less<>) or
std::min_element(..., std::greater<>)

Both variants are confussing to read. Instead of provinding
Utils::maxElementOr provide a bestElementOr which leads to this code:
bestElementOr(..., std::greater<>).

Change-Id: Ic30f0d742c03170b28227f60d3a5ae00e40fdf5a
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2014-06-16 22:47:28 +02:00
..
2014-06-13 16:42:09 +02:00
2014-05-08 15:29:11 +02:00
2014-05-26 15:20:16 +02:00
2014-04-04 14:37:24 +02:00
2014-06-12 13:26:30 +02:00
2014-05-20 07:45:02 +02:00
2014-04-04 14:37:24 +02:00
2014-04-04 14:37:24 +02:00