QMap - use hint on insert in QMap::toStdMap
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Mon, 1 Oct 2012 04:42:28 +0000 (06:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 27 Oct 2012 05:35:48 +0000 (07:35 +0200)
commitcfc3eeea1b3fbf31998deef65fb01214d44d36fd
tree5ecc5d35ccb932179e959e591643d119304d0169
parent67a0f546c507d4113de895df297815adcb5d489e
QMap - use hint on insert in QMap::toStdMap

Giving the std-map a hint (normally) improves insert performance.
There seems to be no reason not to provide this hint.

Change-Id: I4344607ebf54574a3ae9666d87a41a3c14762361
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/corelib/tools/qmap.h
tests/benchmarks/corelib/tools/qmap/main.cpp