diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-23 22:37:17 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-24 17:14:30 +0000 |
commit | c05f2985eb90c7e18dee99676f0a5da3239e30b9 (patch) | |
tree | 7c625d4653ed7d6c84cba3be5493885774077fad /src/corelib/kernel | |
parent | aca859cbc4c599e0c996dd2f3df148d59e3f590a (diff) |
QMimeTypeParser: scope a variable better
The variable being a QVector, this means replacing
default construction followed by one move-assignment
per loop iteration with a StartElement state with
RVO-catching a return value.
Saves ~320b in text size on optimized GCC 5.3 Linux
AMD64 builds.
Change-Id: I618d31ad0816f9ad1a89a6b2e39481258f1e0878
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel')
0 files changed, 0 insertions, 0 deletions