qt5base-lts/tests/auto/corelib/xml/qxmlstream
Marc Mutz efcae5d5ca 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>
2016-08-27 05:09:16 +00:00
..
data Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
XML-Test-Suite Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
.gitattributes Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
.gitignore Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
qc14n.h Updated license headers 2016-01-21 18:55:18 +00:00
qxmlstream.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
setupSuite.sh Updated license headers 2016-01-21 18:55:18 +00:00
tst_qxmlstream.cpp tests/auto/corelib/xml: cleanup 2016-08-27 05:09:16 +00:00
XML-Test-Suite-LICENSE.txt Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00