path: root/tests/auto/tools/moc/tst_moc.cpp
diff options
authorMarc Mutz <>2019-04-30 15:34:08 +0200
committerMarc Mutz <>2019-05-14 19:43:10 +0000
commit68eea0196ebf30617e7d837ac5f61aaeeb814692 (patch)
treef7c1489c3f4e6d4170a1a9dc15f58d788495ee08 /tests/auto/tools/moc/tst_moc.cpp
parentb70327923527bd9f10e258ca8fd170d5916b9ae6 (diff)
QTableView: replace QLinkedList with std::list
The object is never copied, so there's no point in using a cow'ed list implementation. Apart from the usual API adaptions (isEmpty() -> empty(), append() -> push_back()), alse replaced two foreach-loops with ranged-for. The first one does not call into out-of-line functions, and doesn't modify the container it iterates over, so is safe. The second does call into out-of-line functions, but they are const. The loop does not modify the container it iterates over, either, so is also safe (except for some fishy const_cast somewhere, or const being lost due to shallowness of const). Also replaced explicit-iterator loops with ranged-for where possible. Change-Id: I60b0f2d356846d527bfbaa6a0ecbb8395013b852 Reviewed-by: Lars Knoll <>
Diffstat (limited to 'tests/auto/tools/moc/tst_moc.cpp')
0 files changed, 0 insertions, 0 deletions