diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-05-02 19:56:29 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-02 22:27:11 +0200 |
commit | dce7dbecb0135501eb8641c8f5ec8e98bddc808c (patch) | |
tree | ef3da870c951e5c838dde1ceb680d7d53b56c3ed /src/printsupport | |
parent | 13997cccc9dd9a1242b7707b5e934deae84d253a (diff) |
qlalr: replace QLinkedList with std::list
This is in preparation of deprecating QLinkedList.
Most is straight-forward, except where operator+ was used on linked-list
iterators. In one case, replaced this with std::next, in the other, with
prefix increments, since the advancement was always equal to the loop
control variable. Since advancing a linked-list iterator is a linear
operation, this removes a source of quadratic complexity.
Another obstacle was the overloaded op< set, which was in the Qt namespace
while the iterator is from std and the payload, as before, was global.
This breaks ADL, so move these operators to namespace std. This violates
the standard, but the functions are tagged with our distinct types, so it
shouldn't cause any trouble.
Change-Id: Ifec0a927bfdabb002838cdf86fb8d23b32a38ff7
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/printsupport')
0 files changed, 0 insertions, 0 deletions