summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsintegration.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-04-30 15:34:08 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-05-14 19:43:10 +0000
commit68eea0196ebf30617e7d837ac5f61aaeeb814692 (patch)
treef7c1489c3f4e6d4170a1a9dc15f58d788495ee08 /src/plugins/platforms/windows/qwindowsintegration.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 <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsintegration.cpp')
0 files changed, 0 insertions, 0 deletions