summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/offscreen
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-08-16 19:29:38 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-08-27 05:09:16 +0000
commitefcae5d5caefcaf86bfb76fce7d4d1a5c4229753 (patch)
treeaafbfb1a56bbc5db2978fa59eb068c1cd91bb6ea /src/plugins/platforms/offscreen
parent1f8d61954dab3d27dfc886ba8a1783a81fbfff09 (diff)
tests/auto/corelib/xml: cleanup
- port Q_FOREACH to C++11 range-for - mark types held in Qt containers as shared - port inefficient QLists to QVectors (required adding an artificial default ctor to one of the payload types) - fix algorithmic mistake: * don't use a QMap to sort a vector of QXmlStream{Attribute,NotationDeclaration}, constructing a QString key from the QStringRef name(). Use std::sort with a lambda. Since this code is used in two places, and we don't yet require poly- morphic lambdas, factor the code into a helper function template that also takes care of adding the const to the return type so the range-for doesn't detach the container. Fixes errors reported by my local tree's static checks. Change-Id: I3de97d9b03c87455aa6030998e9ca26c6c79a2e3 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/platforms/offscreen')
0 files changed, 0 insertions, 0 deletions