TreeMap: fix compare function

Authored by Josef Weidendorfer <Josef.Weidendorfer@gmx.de> on Nov 23 2016, 7:27 PM.

Description

TreeMap: fix compare function

For descending sorting, TreeMapItemLessThan
implemented <=, not <.

qSort obviously has no problem with that, but
in preparation of replacing the obsolete qSort
with std::sort, we need to fix it, because
it otherwise it can crash (actually observed!).
std::sort is known to be sensitive to non-strictly
ordering compare functions, eventually resulting
in out-of-bounds accesses.

Details

Committed
Josef Weidendorfer <Josef.Weidendorfer@gmx.de>Nov 23 2016, 7:27 PM
Parents
R49:b80aeb816a29: const char* name -> const QString& name where needed, otherwise completly…
Branches
Unknown
Tags
Unknown
Josef Weidendorfer <Josef.Weidendorfer@gmx.de> committed R49:2856bba665fa: TreeMap: fix compare function (authored by Josef Weidendorfer <Josef.Weidendorfer@gmx.de>).Nov 23 2016, 7:27 PM