diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-09 12:28:04 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-11 19:26:11 +0000 |
commit | 257cc69bedebf924bcabf0ff24e237b8705260ad (patch) | |
tree | cb1a28933718551c496f289ef00c5b64e7c0b122 /examples/xml | |
parent | 4bc923b6281dcbdc610133f1c47523999ef8c153 (diff) |
Optimize string building in QImage::text()
- Don't iterate over QMap::keys(), but directly
over the map, saving a temporary QList and
double lookups.
- Always append the item separator, and chop
it off once at the end, which allows to
fold the separator into the existing string
builder expression.
Change-Id: Ibd20ea292695098e0fc575025b1827a75aabfd1e
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'examples/xml')
0 files changed, 0 insertions, 0 deletions