diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-23 21:53:08 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-24 17:14:15 +0000 |
| commit | 71b106ab436f75d3467a71b1b3739ce570b62522 (patch) | |
| tree | 226119c718f7050dd3d19a33ec631f93bf4f5642 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | 215bda50f959673f076fe76cf1f95a2a5f759b2c (diff) | |
QMimeTypeParser: use QStringRef more
Keep the return values of QXmlStream*::value() around as QStringRefs
for as long as possible. Avoids conversions to QString, among other
things, for:
- comparison to another string
- conversion to int
- conversion to UTF-8 or Latin-1 byte arrays
Add a pair of Q_UNLIKELY as a drive-by.
Saves ~900b in text size on optimized GCC 5.3 Linux AMD64 builds.
Change-Id: I17d440a11aeb8675979483f89e66d0a088ccc605
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
