path: root/src/gui/kernel
diff options
authorMarc Mutz <>2016-02-09 12:28:04 +0100
committerMarc Mutz <>2016-02-11 19:26:11 +0000
commit257cc69bedebf924bcabf0ff24e237b8705260ad (patch)
treecb1a28933718551c496f289ef00c5b64e7c0b122 /src/gui/kernel
parent4bc923b6281dcbdc610133f1c47523999ef8c153 (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) <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions