summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qunicodetools.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-04-25 11:36:36 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-04-27 15:29:27 +0000
commit654a5fe529cb09338b78f044296ac1445d590a0d (patch)
tree2deb0ddd72afa3e35679c802682f396d93875d62 /src/corelib/tools/qunicodetools.cpp
parent369572f892a5e748098c038b76b0f4331d2dd201 (diff)
Optimize QXcbScreen::visualForFormat()
... by stopping the work when finding the first RGB candidate, and otherwise only remembering the first candidate as a fall-back. This way, we don't need to allocate memory as we did when collecting the candidates in a QVector. Saves more than 800b in text size on optimized GCC 6.0 Linux AMD64 builds. Change-Id: I7d0cae69fa421fed881dd5a0f1aa45035d8f7461 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qunicodetools.cpp')
0 files changed, 0 insertions, 0 deletions