diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2017-12-16 22:55:11 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2017-12-18 09:21:51 +0000 |
| commit | 8b8e53f7267911c4f406f5c6f54e4a60a0f32112 (patch) | |
| tree | fd68572c9d830dddd1910fc2c1538313ce3b8f53 /src/corelib/thread/qexception.cpp | |
| parent | e31c79ece49f0893882f9062edc9664926b9b13f (diff) | |
QScroller: maintain activeScrollers as a QList, not a QSet
The number of active scrollers is probably very low, so O(N) vs. O(1)
search can be neglected, compared to the higher cost of allocating and
iterating a QSet. The tipping point is that the public API uses QList,
and the QSet needs to be converted toList() on each (external) access.
Just use a QList.
Change-Id: I5f0b37761923dc94d6dbbbf92973da73f5335e4a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/corelib/thread/qexception.cpp')
0 files changed, 0 insertions, 0 deletions
