summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qlist/tst_qlist.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-06-24 20:34:15 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-07-06 17:59:07 +0200
commit2e51686746c45055e5bb74f58e0c159bfb6a8c13 (patch)
tree2bc4e2c2c90d1ee3f7682c3b1925176af2ec8fcd /tests/auto/corelib/tools/qlist/tst_qlist.cpp
parent95326a2977ddb734716c0d17e3edcdb00c5c4bca (diff)
QList: improve the range constructors
In case of forward iterators, call std::distance just once and not twice. In case of non-forward iterators, don't call reserveIfForwardIterator -- as the name says, it doesn't make sense on non-forward iterators. Change-Id: I7e6a603205286c05f7bc7c47fd1f1e0d92705b20 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qlist/tst_qlist.cpp')
0 files changed, 0 insertions, 0 deletions