diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-16 16:48:27 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-01-26 11:21:37 +0000 |
commit | cf9d112d7a99502b7f68c3bce5fe5e2a6d123917 (patch) | |
tree | 3b3322ee188f000312e1f7d3e296fdd5d1325e5a /examples | |
parent | 18597b2ae2a757de932dbc8314899d5a1d27304e (diff) |
qlalr: remove uses of inefficient QLists
For QList<QLinkedList<T>::iterator>, mark the iterator Q_PRIMITIVE_TYPE.
This should be done in Qt itself, but would be binary incompatible.
For two other types that are used as values in QMultiMap, replaced
foreach (x, map.values(y))
with
auto range = map.equal_range(y);
for (auto it = range.first; it != ramge.second; ++it)
x = *it;
which doesn't require a temporary QList.
Change-Id: I9ddd15dd9b1d5bb3000833d14ed911451a272328
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions