summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-01-28 16:09:46 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-02-01 14:12:19 +0000
commit5af12dae41da231c9e8fa25478605a760ccb03bd (patch)
tree0dbfa67c7d13d13e7eeb0c26793dc541c66ac8b5 /tests/auto/corelib/io
parent14efcaa3921687129d4dca9b7d5794668a329cd6 (diff)
qmake: replace a QLinkedList with QVector
In VcprojGenerator::collectDependencies(), a temporary QLinkedList is created, then iterated over. There's no reason to use a node- based container here: no references are taken, no erases happen, esp. not in the middle... Port to QVector instead and reserve it, since the maximum size is known ahead of time, and the lifetime of the container is very short. Since the loop iterating over the linked list needed touching anyway, port directly to C++11 range-for. Change-Id: Ic5dfeebcd9da37c214f54abc6025a0a2b8fa3b5d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'tests/auto/corelib/io')
0 files changed, 0 insertions, 0 deletions