Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.3.2
-
None
Description
QMap::insert(const_iterator, Key, T) and QMap::insertMulti(const_iterator, Key, T) will keep a alphanumerically sorted node list due to a simple checking function call (see [a]).
This should include as user controllable flag to disable/enable (see [b]);
[a]: if (!qMapLessThanKey(n->key, akey))
return this->insertMulti(akey, avalue); // ignore hint
[b]: if ( use_alphanumerical_sorting && !qMapLessThanKey(n->key, akey))
return this->insertMulti(akey, avalue); // ignore hint